changeset 18460:6853dc0411c1

search ac3 in dvd substream only if pes_aligned flag is set in the pes headers, otherwise false positives are likely to occur
author nicodvb
date Fri, 12 May 2006 20:26:05 +0000
parents 59e41f71a3fa
children e98125844f2d
files libmpdemux/demux_ts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;