# HG changeset patch # User nicodvb # Date 1147465565 0 # Node ID 6853dc0411c1279278f86e1e8179c7d11b3b3f5b # Parent 59e41f71a3fa1c7d10060b92bcd7443759d86a8d search ac3 in dvd substream only if pes_aligned flag is set in the pes headers, otherwise false positives are likely to occur diff -r 59e41f71a3fa -r 6853dc0411c1 libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Fri May 12 17:27:03 2006 +0000 +++ b/libmpdemux/demux_ts.c Fri May 12 20:26:05 2006 +0000 @@ -1309,7 +1309,7 @@ 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;