Fixes: Assertion !f->f && !f->progress failed at libavcodec/decode.c:1688 Fixes: 68190/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THEORA_fuzzer-5942090287611904
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -2651,6 +2651,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 2650 unmodified lines | ||
| 2651 | 2651 | if (avctx->skip_frame >= AVDISCARD_NONKEY && !s->keyframe) |
| 2652 | 2652 | return buf_size; |
| 2653 | 2653 | |
| 2654 | + ff_progress_frame_unref(&s->current_frame); | |
| 2654 | 2655 | ret = ff_progress_frame_get_buffer(avctx, &s->current_frame, |
| 2655 | 2656 | AV_GET_BUFFER_FLAG_REF); |
| 2656 | 2657 | if (ret < 0) { |