summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg_er.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-10-09 00:32:30 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-10-10 23:58:40 +0200
commit127a362630e11fe724e2e63fc871791fdcbcfa64 (patch)
tree06b3733a90414d38461030da1dc962343c09b013 /libavcodec/mpeg_er.c
parente38f280fece38e270a6462a02cc034f4116a7912 (diff)
downloadffmpeg-streaming-127a362630e11fe724e2e63fc871791fdcbcfa64.zip
ffmpeg-streaming-127a362630e11fe724e2e63fc871791fdcbcfa64.tar.gz
avcodec/mpeg_er: Clear mcsel in mpeg_er_decode_mb()
Fixes out of array read Should fix: 3516/clusterfuzz-testcase-minimized-4608518562775040 (not reprodoceable) Found-by: Insu Yun, Georgia Tech. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mpeg_er.c')
-rw-r--r--libavcodec/mpeg_er.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpeg_er.c b/libavcodec/mpeg_er.c
index 5eca834..ada1a16 100644
--- a/libavcodec/mpeg_er.c
+++ b/libavcodec/mpeg_er.c
@@ -71,6 +71,7 @@ static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type,
s->mb_skipped = mb_skipped;
s->mb_x = mb_x;
s->mb_y = mb_y;
+ s->mcsel = 0;
memcpy(s->mv, mv, sizeof(*mv));
ff_init_block_index(s);
OpenPOWER on IntegriCloud