diff mbox series

[FFmpeg-devel,23/30] avcodec/qdmc: Mark decoder as init-threadsafe

Message ID 20201230233157.1055287-23-andreas.rheinhardt@gmail.com
State Accepted
Commit bd46e3ee71c20685b54778d0f5d845e1d9449a1a
Headers show
Series [FFmpeg-devel,01/30] avcodec/opustab: Make array static | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Dec. 30, 2020, 11:31 p.m. UTC
It already uses ff_thread_once() to initialize its static data.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/qdmc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Paul B Mahol Dec. 31, 2020, 4 p.m. UTC | #1
probably ok

On Thu, Dec 31, 2020 at 12:36 AM Andreas Rheinhardt <
andreas.rheinhardt@gmail.com> wrote:

> It already uses ff_thread_once() to initialize its static data.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/qdmc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/qdmc.c b/libavcodec/qdmc.c
> index 94681a0b6b..a8c930f0e7 100644
> --- a/libavcodec/qdmc.c
> +++ b/libavcodec/qdmc.c
> @@ -736,4 +736,5 @@ AVCodec ff_qdmc_decoder = {
>      .decode           = qdmc_decode_frame,
>      .flush            = qdmc_flush,
>      .capabilities     = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
> +    .caps_internal    = FF_CODEC_CAP_INIT_THREADSAFE,
>  };
> --
> 2.25.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/libavcodec/qdmc.c b/libavcodec/qdmc.c
index 94681a0b6b..a8c930f0e7 100644
--- a/libavcodec/qdmc.c
+++ b/libavcodec/qdmc.c
@@ -736,4 +736,5 @@  AVCodec ff_qdmc_decoder = {
     .decode           = qdmc_decode_frame,
     .flush            = qdmc_flush,
     .capabilities     = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
+    .caps_internal    = FF_CODEC_CAP_INIT_THREADSAFE,
 };