diff mbox series

[FFmpeg-devel,02/17] avcodec/amrnbdec: Mark decoder as init-threadsafe

Message ID AM7PR03MB666091EA411888EC71CBA50F8F319@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 903e87185870809bd908b7322d51d3be0d867eb7
Headers show
Series [FFmpeg-devel,01/17] avcodec/svq3: Mark decoder as init-threadsafe | expand

Checks

Context Check Description
yinshiyou/make_fate_loongarch64 success Make fate finished
yinshiyou/make_loongarch64 warning New warnings during build
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 12, 2022, 6:41 a.m. UTC
It performs no initialization of static data during its init function.

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

Comments

Paul B Mahol Feb. 12, 2022, 7:49 a.m. UTC | #1
LGTM
diff mbox series

Patch

diff --git a/libavcodec/amrnbdec.c b/libavcodec/amrnbdec.c
index d8e0370a3b..1e11445cd3 100644
--- a/libavcodec/amrnbdec.c
+++ b/libavcodec/amrnbdec.c
@@ -1107,4 +1107,5 @@  const AVCodec ff_amrnb_decoder = {
     .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
     .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP,
                                                      AV_SAMPLE_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };