X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fshorten.c;h=fde5c4b98245a7c314d7b67cb11bd799eb394a5c;hb=a247ac640df3da573cd661065bf53f37863e2b46;hp=4134af74cfe6d1e522322076f323b0ac2dd6bad8;hpb=4f9a8d3fe2f9485ee08848d336ee96f15ec0e7e6;p=ffmpeg diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index 4134af74cfe..fde5c4b9824 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -799,7 +799,7 @@ static av_cold int shorten_decode_close(AVCodecContext *avctx) return 0; } -AVCodec ff_shorten_decoder = { +const AVCodec ff_shorten_decoder = { .name = "shorten", .long_name = NULL_IF_CONFIG_SMALL("Shorten"), .type = AVMEDIA_TYPE_AUDIO, @@ -808,8 +808,12 @@ AVCodec ff_shorten_decoder = { .init = shorten_decode_init, .close = shorten_decode_close, .decode = shorten_decode_frame, - .capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, + .capabilities = AV_CODEC_CAP_CHANNEL_CONF | + AV_CODEC_CAP_DELAY | + AV_CODEC_CAP_DR1 | + AV_CODEC_CAP_SUBFRAMES , .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_U8P, AV_SAMPLE_FMT_NONE }, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, };