summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-11-25 12:15:51 +0100
committerPaul B Mahol <onemda@gmail.com>2018-11-30 16:27:20 +0100
commitf09bbb8f087dc1780ce1fe236a7e27ae4e49fb14 (patch)
treeaaaefafbdc661e07618e1c65081535ca0277f453 /libavformat
parent67cdfcf694f840d215be940f82545c45c9be193a (diff)
avformat/ac3dec: always skip junk bytes before sync bytes
Fixes #7278.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/ac3dec.c2
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;