GNOME Bugzilla – Bug 509329
[rtspsrc] use atoll when parsing rtptime
Last modified: 2008-01-14 12:37:17 UTC
With large values rtptime gets truncated when parsing it to timebase: 0:00:09.235565000 1711 0x2c008 DEBUG rtspsrc gstrtspsrc.c:4064:gst_rtspsrc_parse_rtpinfo:<source> parsing field seq=26185 0:00:09.236664000 1711 0x2c008 DEBUG rtspsrc gstrtspsrc.c:4064:gst_rtspsrc_parse_rtpinfo:<source> parsing field rtptime=2959574162 0:00:09.237732000 1711 0x2c008 DEBUG rtspsrc gstrtspsrc.c:4081:gst_rtspsrc_parse_rtpinfo:<source> found stream 0x2eb08, setting: seqbase 26185, timebase 2147483647 This can be fixed by parsing rtptime using atoll() instead of atol().
As found by: Tommi Myöhänen <ext-tommi.myohanen nokia com> * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_rtpinfo): Use atoll to parse the rtptime with enough precision. Fixes #509329.