[FFmpeg-devel] [PATCH] hevc: Mark as having threadsafe init

Derek Buitenhuis derek.buitenhuis at gmail.com
Tue Jan 10 20:24:27 EET 2017


Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
It looks like it already is threadsafe, amazingly? I don't
see any table inits, somehow.
---
 libavcodec/hevc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 7c563a3..607a8da 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -3416,5 +3416,6 @@ AVCodec ff_hevc_decoder = {
     .init_thread_copy      = hevc_init_thread_copy,
     .capabilities          = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY |
                              AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS,
+    .caps_internal         = FF_CODEC_CAP_INIT_THREADSAFE,
     .profiles              = NULL_IF_CONFIG_SMALL(ff_hevc_profiles),
 };
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list