]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qdmc.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / qdmc.c
index eca64b056e368f6225bd720bbf25cdbb1b11e3cb..ae75ca524ac23b3e2bfa83215da3fa6566d752cf 100644 (file)
@@ -725,7 +725,7 @@ static int qdmc_decode_frame(AVCodecContext *avctx, void *data,
     return ret;
 }
 
-AVCodec ff_qdmc_decoder = {
+const AVCodec ff_qdmc_decoder = {
     .name             = "qdmc",
     .long_name        = NULL_IF_CONFIG_SMALL("QDesign Music Codec 1"),
     .type             = AVMEDIA_TYPE_AUDIO,
@@ -735,5 +735,6 @@ AVCodec ff_qdmc_decoder = {
     .close            = qdmc_decode_close,
     .decode           = qdmc_decode_frame,
     .flush            = qdmc_flush,
-    .capabilities     = AV_CODEC_CAP_DR1,
+    .capabilities     = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
+    .caps_internal    = FF_CODEC_CAP_INIT_THREADSAFE,
 };