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 <finlay...@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@lists.live555.com > http://lists.live555.com/mailman/listinfo/live-devel > >
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel