From: Alban Browaeys Date: Thu, 4 Apr 2013 16:22:52 +0000 (+0200) Subject: mpegdemux: accept ID_PRIVATE_STREAM_1 to avoid loosing sync X-Git-Tag: 1.19.3~507^2~13420 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44b1bc608159226750f2d61817b89874304cc484;p=platform%2Fupstream%2Fgstreamer.git mpegdemux: accept ID_PRIVATE_STREAM_1 to avoid loosing sync Current fallback to lost_sync seems to impede a delay to restore sync. Let the parser parse and skip the private stream. Here it contains the digital camera brand (in 2010 bytes) and is repeated twice. https://bugzilla.gnome.org/show_bug.cgi?id=697283 --- diff --git a/gst/mpegdemux/gstpesfilter.c b/gst/mpegdemux/gstpesfilter.c index efef8f6..a19987b 100644 --- a/gst/mpegdemux/gstpesfilter.c +++ b/gst/mpegdemux/gstpesfilter.c @@ -101,6 +101,7 @@ static gboolean gst_pes_filter_is_sync (guint32 sync) { return ((sync & 0xfffffffc) == 0x000001bc) || + ((sync & 0xfffffffd) == 0x000001bd) || ((sync & 0xffffffe0) == 0x000001c0) || ((sync & 0xfffffff0) == 0x000001f0) || ((sync & 0xfffffff0) == 0x000001e0);