GNOME Bugzilla – Bug 669675
[PATCH] mpegdemux/dvddemux randomly losing packets
Last modified: 2012-11-11 17:44:03 UTC
Created attachment 207107 [details] [review] Avoid skipping of a partial start code when exhausting cache buffer Hi, in gstmpegpacketize.c, when a packet start code appears across the end of the cache chunk boundary, it is not properly recognized by find_start_code(). The attached patch changes the behavior of find_start_code() so its next call continues at the next byte instead of skipping all four bytes previously checked.
On first look, this appears to do bad things in the corner case of having less than 5 bytes left in the stream.
Thanks for the patch, but this mpeg demuxer has been removed from GStreamer 1.x in favour of the mpeg PS demuxer from gst-plugins-bad, and the 0.10 branch is no longer maintained I'm afraid. Would still be great if you could make sure that the issue you were seeing does not exist with the mpegpsdemux element from -bad. Thanks!