]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/opusdec.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / opusdec.c
index 24e90a376185e5f71ec65f7a23a24b9bae88846c..3ebf199219fb68af3021e96c2c90050a9ee2ab1b 100644 (file)
@@ -704,7 +704,7 @@ static const AVClass opus_class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
-AVCodec ff_opus_decoder = {
+const AVCodec ff_opus_decoder = {
     .name            = "opus",
     .long_name       = NULL_IF_CONFIG_SMALL("Opus"),
     .priv_class      = &opus_class,
@@ -716,5 +716,5 @@ AVCodec ff_opus_decoder = {
     .decode          = opus_decode_packet,
     .flush           = opus_decode_flush,
     .capabilities    = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF,
-    .caps_internal   = FF_CODEC_CAP_INIT_CLEANUP,
+    .caps_internal   = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
 };