diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-05-28 00:19:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-07-05 01:47:56 +0200 |
commit | 500965b7eeeab9d0dd08c38bb1f52666fad6d55b (patch) | |
tree | 4ee7aabf6aacc811be0c33db7b31d60e4064c74c /libavcodec/h264dsp.h | |
parent | a09705cf481a27c2b9508bf24fa2395a568d86a5 (diff) | |
download | ffmpeg-500965b7eeeab9d0dd08c38bb1f52666fad6d55b.tar.gz |
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>
(cherry picked from commit 4f33a9803a3068ce2d52289fc1db60375dc8b7a5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264dsp.h')
0 files changed, 0 insertions, 0 deletions