History

avcodec/vp3: Call ff_progress_frame_unref() before ff_progress_frame_get_buffer()

Fixes: Assertion !f->f && !f->progress failed at libavcodec/decode.c:1688 Fixes: 68190/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THEORA_fuzzer-5942090287611904

Michael Niedermayer committed 2 years ago

Commit d9699461 parent 5eb05f41 file · +1 −0Browse files

Unified · Split

libavcodec/vp3.c+1−0
@@ -2651,6 +2651,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 2650 unmodified lines
2651 if (avctx->skip_frame >= AVDISCARD_NONKEY && !s->keyframe)2651 if (avctx->skip_frame >= AVDISCARD_NONKEY && !s->keyframe)
2652 return buf_size;2652 return buf_size;
2653 2653
2654 ff_progress_frame_unref(&s->current_frame);
2654 ret = ff_progress_frame_get_buffer(avctx, &s->current_frame,2655 ret = ff_progress_frame_get_buffer(avctx, &s->current_frame,
2655 AV_GET_BUFFER_FLAG_REF);2656 AV_GET_BUFFER_FLAG_REF);
2656 if (ret < 0) {2657 if (ret < 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t