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
This commit is contained in:
nicodvb 2006-05-12 20:26:05 +00:00
parent 7a4c832222
commit dd9d768293
1 changed files with 1 additions and 1 deletions

View File

@ -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;