X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibgsmdec.c;h=ae4a952d99103714b92fcc9c022c85a34bdfb28d;hb=b9fff6e15e73dc995695db9be8db084238cca14c;hp=89e1de0fed7637cac7d4f6c6a6807c160358d5a4;hpb=217ad40aef9eeeff4e805dec3e980fb16aec3345;p=ffmpeg diff --git a/libavcodec/libgsmdec.c b/libavcodec/libgsmdec.c index 89e1de0fed7..ae4a952d991 100644 --- a/libavcodec/libgsmdec.c +++ b/libavcodec/libgsmdec.c @@ -124,7 +124,7 @@ static void libgsm_flush(AVCodecContext *avctx) { } #if CONFIG_LIBGSM_DECODER -AVCodec ff_libgsm_decoder = { +const AVCodec ff_libgsm_decoder = { .name = "libgsm", .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), .type = AVMEDIA_TYPE_AUDIO, @@ -134,12 +134,12 @@ AVCodec ff_libgsm_decoder = { .close = libgsm_decode_close, .decode = libgsm_decode_frame, .flush = libgsm_flush, - .capabilities = AV_CODEC_CAP_DR1, + .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, .wrapper_name = "libgsm", }; #endif #if CONFIG_LIBGSM_MS_DECODER -AVCodec ff_libgsm_ms_decoder = { +const AVCodec ff_libgsm_ms_decoder = { .name = "libgsm_ms", .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), .type = AVMEDIA_TYPE_AUDIO, @@ -149,7 +149,7 @@ AVCodec ff_libgsm_ms_decoder = { .close = libgsm_decode_close, .decode = libgsm_decode_frame, .flush = libgsm_flush, - .capabilities = AV_CODEC_CAP_DR1, + .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, .wrapper_name = "libgsm", }; #endif