diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-06 16:21:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-06 16:56:38 +0200 |
commit | 90b6425b1285b4e3fc74d4d6c62e2a71c0de25b3 (patch) | |
tree | 9bfe9b0e2dfca8ff1d89e821ebfa0dd19fc883e5 | |
parent | 07944df9a7d76a212ca898e37d91a660cd4ee0e7 (diff) | |
download | ffmpeg-90b6425b1285b4e3fc74d4d6c62e2a71c0de25b3.tar.gz |
avcodec/pafvideo: Fix assertion failure
Fixes: 2100/clusterfuzz-testcase-minimized-4522961547558912
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c4360559ee2a6c8c624f24fc7e2a1cf00972ba68)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/pafvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pafvideo.c b/libavcodec/pafvideo.c index 1618a3e7c3..91bfe16376 100644 --- a/libavcodec/pafvideo.c +++ b/libavcodec/pafvideo.c @@ -273,7 +273,7 @@ static int paf_video_decode(AVCodecContext *avctx, void *data, bytestream2_init(&c->gb, pkt->data, pkt->size); code = bytestream2_get_byte(&c->gb); - if ((code & 0xF) > 4) { + if ((code & 0xF) > 4 || (code & 0xF) == 3) { avpriv_request_sample(avctx, "unknown/invalid code"); return AVERROR_INVALIDDATA; } |