From 6aad1204ccea90113d19a8b829c8b81891f9474e Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 9 Jul 2022 22:25:41 +0200 Subject: avcodec: Add FF_CODEC_CAP_NOT_INIT_THREADSAFE This is in preparation of switching the default init-thread-safety to a codec being init-thread-safe. Signed-off-by: Andreas Rheinhardt --- libavcodec/libgsmenc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/libgsmenc.c') diff --git a/libavcodec/libgsmenc.c b/libavcodec/libgsmenc.c index a45b77be95..f83389dd60 100644 --- a/libavcodec/libgsmenc.c +++ b/libavcodec/libgsmenc.c @@ -134,6 +134,7 @@ const FFCodec ff_libgsm_encoder = { .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, .p.wrapper_name = "libgsm", + .caps_internal = FF_CODEC_CAP_NOT_INIT_THREADSAFE, }; #endif #if CONFIG_LIBGSM_MS_ENCODER @@ -154,5 +155,6 @@ const FFCodec ff_libgsm_ms_encoder = { .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, .p.wrapper_name = "libgsm", + .caps_internal = FF_CODEC_CAP_NOT_INIT_THREADSAFE, }; #endif -- cgit v1.2.1