<div dir="ltr">I've tested in iOS and it only recognized the line using the second version.<br>Could the implementation in iOS of sscanf be slightly different ?<br>Thank you<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-07-24 11:22 GMT-03:00 Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div class=""><blockquote type="cite"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">looking into file liveMedia/MediaSession.cpp I believe there is an</span><br style="font-family:arial,sans-serif;font-size:13px">


<span style="font-family:arial,sans-serif;font-size:13px">extra space in parseRangeAttribute method.</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Instead of:</span><br style="font-family:arial,sans-serif;font-size:13px">


<span style="font-family:arial,sans-serif;font-size:13px">return sscanf(sdpLine, "a=range: npt = %lg - %lg", &startTime, &endTime) == 2;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">I think it should read:</span><br style="font-family:arial,sans-serif;font-size:13px">


<span style="font-family:arial,sans-serif;font-size:13px">return sscanf(sdpLine, "a=range:npt=%lg - %lg", &startTime, &endTime) == 2;</span><br style="font-family:arial,sans-serif;font-size:13px"></div>
</blockquote><div><br></div></div>No.  The existing code is correct.  Note from "man sscanf":</div><div><br></div><div>"White space (such as blanks, tabs, or newlines) in the format string match<br>     any amount of white space, ***including none***, in the input."</div>
<span class="HOEnZb"><font color="#888888"><br><br><div>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Ross Finlayson<br>
Live Networks, Inc.<br><a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a></span></span>
</div>
<br></font></span></div><br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br></div>