[FFmpeg-devel] [PATCH 168/191] avcodec/atrac1: Mark decoder as init-threadsafe
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Mon Nov 23 21:37:16 EET 2020
Possible because ff_init_ff_sine_windows() is now threadsafe.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavcodec/atrac1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/atrac1.c b/libavcodec/atrac1.c
index b2a2d5e6a1..31ec323370 100644
--- a/libavcodec/atrac1.c
+++ b/libavcodec/atrac1.c
@@ -392,5 +392,5 @@ AVCodec ff_atrac1_decoder = {
.capabilities = AV_CODEC_CAP_DR1,
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
AV_SAMPLE_FMT_NONE },
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE,
};
--
2.25.1
More information about the ffmpeg-devel
mailing list