lavc/hevcdec: call ff_thread_finish_setup() even if hwaccel is in use

Serializing frame threading for non-threadsafe hwaccels is handled at the
generic level, the decoder does not need to care about it.
This commit is contained in:
Anton Khirnov 2024-06-13 14:03:16 +02:00
parent 4b9adb35b6
commit 631a725670

View File

@ -3029,8 +3029,9 @@ static int hevc_frame_start(HEVCContext *s)
ret = FF_HW_CALL(s->avctx, start_frame, NULL, 0);
if (ret < 0)
goto fail;
} else
ff_thread_finish_setup(s->avctx);
}
ff_thread_finish_setup(s->avctx);
return 0;