diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-11-25 12:15:51 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-11-30 16:27:20 +0100 |
commit | f09bbb8f087dc1780ce1fe236a7e27ae4e49fb14 (patch) | |
tree | aaaefafbdc661e07618e1c65081535ca0277f453 /libavformat | |
parent | 67cdfcf694f840d215be940f82545c45c9be193a (diff) | |
download | ffmpeg-f09bbb8f087dc1780ce1fe236a7e27ae4e49fb14.tar.gz |
avformat/ac3dec: always skip junk bytes before sync bytes
Fixes #7278.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ac3dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c index 6f423ff7eb..2718061bdc 100644 --- a/libavformat/ac3dec.c +++ b/libavformat/ac3dec.c @@ -47,7 +47,7 @@ static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id) uint16_t frame_size; int i, ret; - if(!memcmp(buf2, "\x1\x10\0\0\0\0\0\0", 8)) { + if(!memcmp(buf2, "\x1\x10", 2)) { if (buf2 + 16 > end) break; buf2+=16; |