[Live-devel] RTSP range clock/npt SDP parse
Paulo Vitor Magacho da Silva
pvmagacho at gmail.com
Thu Jul 24 07:36:40 PDT 2014
I've tested in iOS and it only recognized the line using the second version.
Could the implementation in iOS of sscanf be slightly different ?
Thank you
2014-07-24 11:22 GMT-03:00 Ross Finlayson <finlayson at live555.com>:
> looking into file liveMedia/MediaSession.cpp I believe there is an
> extra space in parseRangeAttribute method.
>
> Instead of:
> return sscanf(sdpLine, "a=range: npt = %lg - %lg", &startTime, &endTime)
> == 2;
> I think it should read:
> return sscanf(sdpLine, "a=range:npt=%lg - %lg", &startTime, &endTime) == 2;
>
>
> No. The existing code is correct. Note from "man sscanf":
>
> "White space (such as blanks, tabs, or newlines) in the format string match
> any amount of white space, ***including none***, in the input."
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140724/df46bbfe/attachment.html>
More information about the live-devel
mailing list