lavc/vp9: Fix regression introduced in 0ba05857

It is possible that ff_progress_frame_await() is called but
ff_progress_frame_report() isn't called when a hardware acceleration
method is used, so a thread for vp9 decoding might get stuck.

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
Haihao Xiang 2024-04-22 14:57:08 +08:00
parent 725d3b6f17
commit 8c62d77139
1 changed files with 1 additions and 1 deletions

View File

@ -1735,9 +1735,9 @@ static int vp9_decode_frame(AVCodecContext *avctx, AVFrame *frame,
if (ret < 0)
goto fail;
}
ff_progress_frame_report(&s->s.frames[CUR_FRAME].tf, INT_MAX);
finish:
ff_progress_frame_report(&s->s.frames[CUR_FRAME].tf, INT_MAX);
// ref frame setup
for (int i = 0; i < 8; i++)
ff_progress_frame_replace(&s->s.refs[i], &s->next_refs[i]);