mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 12:56:40 +00:00
avcodec/vc1dec: ff_print_debug_info() does not support WMV3 field_mode
Fixes: out of array read
Fixes: 36331/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV3_fuzzer-5140494328922112.fuzz
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 c59b5e3d1e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9e84c17a43
commit
6c551b8d10
@ -1098,12 +1098,14 @@ image:
|
||||
if (s->pict_type == AV_PICTURE_TYPE_B || s->low_delay) {
|
||||
if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0)
|
||||
goto err;
|
||||
ff_print_debug_info(s, s->current_picture_ptr, pict);
|
||||
if (!v->field_mode)
|
||||
ff_print_debug_info(s, s->current_picture_ptr, pict);
|
||||
*got_frame = 1;
|
||||
} else if (s->last_picture_ptr) {
|
||||
if ((ret = av_frame_ref(pict, s->last_picture_ptr->f)) < 0)
|
||||
goto err;
|
||||
ff_print_debug_info(s, s->last_picture_ptr, pict);
|
||||
if (!v->field_mode)
|
||||
ff_print_debug_info(s, s->last_picture_ptr, pict);
|
||||
*got_frame = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user