summaryrefslogtreecommitdiff
path: root/libavcodec/libcodec2.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2020-12-05 11:41:23 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2020-12-10 13:28:35 +0100
commit494f868e93d1d671497d0d0884368f015eb7d31e (patch)
treef214048a116ee15a1b747c9aaeecdeec2c2ec3cf /libavcodec/libcodec2.c
parent412c3b37a410c90820bb37308ed55df5aa75e2cc (diff)
downloadffmpeg-494f868e93d1d671497d0d0884368f015eb7d31e.tar.gz
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 <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/libcodec2.c')
-rw-r--r--libavcodec/libcodec2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c
index 8421f5b261..2164f36051 100644
--- a/libavcodec/libcodec2.c
+++ b/libavcodec/libcodec2.c
@@ -189,7 +189,7 @@ AVCodec ff_libcodec2_decoder = {
.init = libcodec2_init_decoder,
.close = libcodec2_close,
.decode = libcodec2_decode,
- .capabilities = 0,
+ .capabilities = AV_CODEC_CAP_CHANNEL_CONF,
.supported_samplerates = (const int[]){ 8000, 0 },
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE },
.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },