]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg12dec: Fix got_output
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 May 2020 22:19:56 +0000 (00:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jun 2020 18:45:56 +0000 (20:45 +0200)
commit4f33a9803a3068ce2d52289fc1db60375dc8b7a5
tree8902aaaedfc9edbae9676c8171f695f76b8c38bb
parent3371d0611fcd31e0bc72553d88774512a58bd2ef
avcodec/mpeg12dec: Fix got_output

This makes got_output consistent with the code in slice_end() which sets the output

in slice_end()
 if (s->pict_type == AV_PICTURE_TYPE_B || s->low_delay) {
     int ret = av_frame_ref(pict, s->current_picture_ptr->f);
     ...
 } else {

Fixes: assertion failure
Fixes: 22178/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1VIDEO_fuzzer-5664234440753152
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg12dec.c