From 494f868e93d1d671497d0d0884368f015eb7d31e Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sat, 5 Dec 2020 11:41:23 +0100 Subject: avcodec: set AV_CODEC_CAP_CHANNEL_CONF on decoders which set their own channels The decoders in this set either have a fixed channel count, or read it from the bitstream, and thus do not require the channel count as external information. Fixes various regressions since 81503ac58a763a36b1f57264013b1e76acb62b68, which requires a valid channel count for decoders which do not set this capability. Signed-off-by: Hendrik Leppkes --- libavcodec/opusdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/opusdec.c') diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c index 03086dea99..a08758d25d 100644 --- a/libavcodec/opusdec.c +++ b/libavcodec/opusdec.c @@ -737,5 +737,5 @@ AVCodec ff_opus_decoder = { .close = opus_decode_close, .decode = opus_decode_packet, .flush = opus_decode_flush, - .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, + .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF, }; -- cgit v1.2.3