diff mbox series

[FFmpeg-devel,195/217] avcodec/mpegaudioenc: Mark encoders as init-threadsafe

Message ID 20201202042244.519127-61-andreas.rheinhardt@gmail.com
State New
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

Checks

Context Check Description
andriy/x86 warning Failed to apply patch

Commit Message

Andreas Rheinhardt Dec. 2, 2020, 4:22 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/mpegaudioenc_fixed.c | 1 +
 libavcodec/mpegaudioenc_float.c | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/mpegaudioenc_fixed.c b/libavcodec/mpegaudioenc_fixed.c
index 022b6fedd3..eec2ecb579 100644
--- a/libavcodec/mpegaudioenc_fixed.c
+++ b/libavcodec/mpegaudioenc_fixed.c
@@ -38,4 +38,5 @@  AVCodec ff_mp2fixed_encoder = {
                                                  AV_CH_LAYOUT_STEREO,
                                                  0 },
     .defaults              = mp2_defaults,
+    .caps_internal         = FF_CODEC_CAP_INIT_THREADSAFE,
 };
diff --git a/libavcodec/mpegaudioenc_float.c b/libavcodec/mpegaudioenc_float.c
index 4d4ab2d7fa..310f7ef98a 100644
--- a/libavcodec/mpegaudioenc_float.c
+++ b/libavcodec/mpegaudioenc_float.c
@@ -39,4 +39,5 @@  AVCodec ff_mp2_encoder = {
                                                  AV_CH_LAYOUT_STEREO,
                                                  0 },
     .defaults              = mp2_defaults,
+    .caps_internal         = FF_CODEC_CAP_INIT_THREADSAFE,
 };