After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 509329 - [rtspsrc] use atoll when parsing rtptime
[rtspsrc] use atoll when parsing rtptime
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.7
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-14 10:43 UTC by Tommi Myöhänen
Modified: 2008-01-14 12:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tommi Myöhänen 2008-01-14 10:43: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().
Comment 1 Wim Taymans 2008-01-14 12:13:18 UTC
        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.