summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Browaeys <prahal@yahoo.com>2013-04-04 18:22:52 +0200
committerTim-Philipp Müller <tim@centricular.net>2013-07-05 20:25:30 +0100
commitce048616a36da37c4ad4c070efbb59dbfff476a4 (patch)
tree75bd1463117498fd39bf34a69227c445f0c170a9
parentfaa47372336ace2d777a4e870d4767bc5aa3af99 (diff)
downloadgstreamer-plugins-bad-ce048616a36da37c4ad4c070efbb59dbfff476a4.tar.gz
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
-rw-r--r--gst/mpegdemux/gstpesfilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/mpegdemux/gstpesfilter.c b/gst/mpegdemux/gstpesfilter.c
index d58c72602..a80de31cb 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);