summaryrefslogtreecommitdiff
path: root/libavcodec/libgsmenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-09 22:25:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-18 19:58:56 +0200
commit6aad1204ccea90113d19a8b829c8b81891f9474e (patch)
tree8610a6ee598d1ff4cbf8225877a11b4c6713a244 /libavcodec/libgsmenc.c
parentc597510434f2950df09d218106279c880bdc146c (diff)
downloadffmpeg-6aad1204ccea90113d19a8b829c8b81891f9474e.tar.gz
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 <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libgsmenc.c')
-rw-r--r--libavcodec/libgsmenc.c2
1 files changed, 2 insertions, 0 deletions
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