diff mbox series

[FFmpeg-devel,07/45] avcodec/pcm: Mark decoders as init-threadsafe

Message ID 20201127010249.2724610-7-andreas.rheinhardt@gmail.com
State Accepted
Commit 5ff030f922c0fea0c8659866da33340b64afe8f0
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

Checks

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

Commit Message

Andreas Rheinhardt Nov. 27, 2020, 1:02 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/pcm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Anton Khirnov Dec. 4, 2020, 10:53 a.m. UTC | #1
Quoting Andreas Rheinhardt (2020-11-27 02:02:11)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/pcm.c | 1 +
>  1 file changed, 1 insertion(+)

Looks ok
diff mbox series

Patch

diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 8ba38c6645..7f0af8564f 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -575,6 +575,7 @@  AVCodec ff_ ## name_ ## _decoder = {                                        \
     .capabilities   = AV_CODEC_CAP_DR1,                                     \
     .sample_fmts    = (const enum AVSampleFormat[]){ sample_fmt_,           \
                                                      AV_SAMPLE_FMT_NONE },  \
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,                         \
 }
 
 #define PCM_DECODER_2(cf, id, sample_fmt, name, long_name)                  \