diff mbox series

[FFmpeg-devel,39/39] lavc/hevcdec: call ff_thread_finish_setup() even if hwaccel is in use

Message ID 20240716171155.31838-39-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/39] tests/fate/vcodec: add vsynth tests for FFV1 version 2 | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov July 16, 2024, 5:11 p.m. UTC
Serializing frame threading for non-threadsafe hwaccels is handled at the
generic level, the decoder does not need to care about it.
---
 libavcodec/hevc/hevcdec.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index 28835f48d6..622d9eeb84 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -3027,8 +3027,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;