ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | 
Fri Feb 11 13:26:09 2022 +0100| [2d29058fb208c5f201f4191a58af8c2a3cf0887c] | 
committer: Andreas Rheinhardt

avcodec/amrwbdec: Mark decoder as init-threadsafe

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

Reviewed-by: Paul B Mahol <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>

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

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

diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c
index 3ff4077f7f..7d1b820bbb 100644
--- a/libavcodec/amrwbdec.c
+++ b/libavcodec/amrwbdec.c
@@ -1303,4 +1303,5 @@ const AVCodec ff_amrwb_decoder = {
     .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
     .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
                                                      AV_SAMPLE_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to