diff mbox

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

Message ID 1484072667-23508-1-git-send-email-derek.buitenhuis@gmail.com
State Accepted
Commit 14b9060160e453398d01ca767c0f8ace9fb4b5e3
Headers show

Commit Message

Derek Buitenhuis Jan. 10, 2017, 6:24 p.m. UTC
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@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(+)

Comments

wm4 Jan. 11, 2017, 6:51 a.m. UTC | #1
On Tue, 10 Jan 2017 18:24:27 +0000
Derek Buitenhuis <derek.buitenhuis@gmail.com> wrote:

> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@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),
>  };

Probably OK.
diff mbox

Patch

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),
 };