GNOME Bugzilla – Bug 540194
[mpegdemux] Doesn't handle files with a non-zero start timestamp properly
Last modified: 2008-07-02 09:13:20 UTC
Hi, mpegdemux doesn't handle files with a non-zero start timestamp properly. It sends a NEWSEGMENT starting at 0 but pushes buffers with timestamps much after 0 for: http://samples.mplayerhq.hu/MPEG-VOB/interlaced/tv2-1_25.mpg This results in a stalled pipeline
with the fluendo mpeg demuxer it crashes like a hippo on an ice ring.
+ Trace 201428
Created attachment 113758 [details] [review] Enhance synchronization The file referred to originally has all 0 SCR, and only some PTS, and mpegdemux relies in part on the former. Fortunately, however, not all the way, and so this patch takes care of this file (and similar). * Bridge (timestamp) gaps by some NEWSEGMENT sending.
Looks good and works fine for me :) Good work
2008-07-02 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> * gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_send_subbuffer), (gst_mpeg_demux_sync_stream_to_time): Bridge gaps in stream by NEWSEGMENT sending. Fixes #540194.