mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-21 14:30:10 +01:00
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:
@@ -1735,9 +1735,9 @@ static int vp9_decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
ff_progress_frame_report(&s->s.frames[CUR_FRAME].tf, INT_MAX);
|
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
|
ff_progress_frame_report(&s->s.frames[CUR_FRAME].tf, INT_MAX);
|
||||||
// ref frame setup
|
// ref frame setup
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
ff_progress_frame_replace(&s->s.refs[i], &s->next_refs[i]);
|
ff_progress_frame_replace(&s->s.refs[i], &s->next_refs[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user