From dd9d768293ec27b56c1d64287de5b156cb6fecf2 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Fri, 12 May 2006 20:26:05 +0000 Subject: [PATCH] search ac3 in dvd substream only if pes_aligned flag is set in the pes headers, otherwise false positives are likely to occur git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18461 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index 1af25ace84..3320926976 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -1309,7 +1309,7 @@ static int pes_parse2(unsigned char *buf, uint16_t packet_len, ES_stream_t *es, return 1; } - else if ((p[0] & 0xF8) == 0x80) + else if (pes_is_aligned && (p[0] & 0xF8) == 0x80) { mp_msg(MSGT_DEMUX, MSGL_DBG2, "A52 WITH HEADER\n"); es->start = p+4;