aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-06-13 14:03:16 +0200
committerAnton Khirnov <anton@khirnov.net>2024-08-19 21:37:22 +0200
commit631a7256705eb5ca424133b612cea9e4c0154ab8 (patch)
tree0b084e3f73c5a62f9a999a854ae4a298301518be
parent4b9adb35b609b7acb591be0459cde07550fd4ebe (diff)
downloadffmpeg-631a7256705eb5ca424133b612cea9e4c0154ab8.tar.gz
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.
-rw-r--r--libavcodec/hevc/hevcdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index 23a5059596..c21a16f624 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -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;