[Live-devel] RTSP range clock/npt SDP parse

Ross Finlayson finlayson at live555.com
Thu Jul 24 07:22:38 PDT 2014


> 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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140724/732e7bb5/attachment.html>


More information about the live-devel mailing list