diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2020-12-05 11:41:23 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2020-12-10 13:28:35 +0100 |
commit | 494f868e93d1d671497d0d0884368f015eb7d31e (patch) | |
tree | f214048a116ee15a1b747c9aaeecdeec2c2ec3cf /libavcodec/takdec.c | |
parent | 412c3b37a410c90820bb37308ed55df5aa75e2cc (diff) | |
download | ffmpeg-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/takdec.c')
-rw-r--r-- | libavcodec/takdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index 9fa1cb1f7f..6bf5dcc2d3 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -947,7 +947,7 @@ AVCodec ff_tak_decoder = { .close = tak_decode_close, .decode = tak_decode_frame, .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), - .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, + .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_CHANNEL_CONF, .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_S32P, |