[FFmpeg-cvslog] avcodec/amrnbdec: Mark decoder as init-threadsafe

Andreas Rheinhardt git at videolan.org
Sun Feb 13 14:07:18 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Feb 11 13:18:08 2022 +0100| [903e87185870809bd908b7322d51d3be0d867eb7] | committer: Andreas Rheinhardt

avcodec/amrnbdec: Mark decoder as init-threadsafe

It performs no initialization of static data during its init function.

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=903e87185870809bd908b7322d51d3be0d867eb7
---

 libavcodec/amrnbdec.c | 1 +
 1 file changed, 1 insertion(+)

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



More information about the ffmpeg-cvslog mailing list