summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-08-08 21:23:31 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-06 14:41:41 +0200
commit7edfec235c601b0dcb3acfebe2fd3889cbf3a2c0 (patch)
tree1b71812385ad5d735c8fa24a0144f380e9b5d72b /libavcodec
parentf0c046464adb17d3d00a41b7d1cc003b9d2e5c91 (diff)
downloadffmpeg-7edfec235c601b0dcb3acfebe2fd3889cbf3a2c0.tar.gz
avcodec/h264dec: use picture parameters in ff_print_debug_info2()
Fixes: out of array read Fixes: 36341/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6737583085322240 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 65892516d52c268bd66ef825c4b1c8050a69d732) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 6270ea80df..360039ff5f 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -939,7 +939,7 @@ static int finalize_frame(H264Context *h, AVFrame *dst, H264Picture *out, int *g
out->qscale_table,
out->motion_val,
NULL,
- h->mb_width, h->mb_height, h->mb_stride, 1);
+ out->mb_width, out->mb_height, out->mb_stride, 1);
}
}