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/libgsmdec.c | |
parent | 412c3b37a410c90820bb37308ed55df5aa75e2cc (diff) |
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/libgsmdec.c')
-rw-r--r-- | libavcodec/libgsmdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libgsmdec.c b/libavcodec/libgsmdec.c index 89e1de0fed..1182afae6b 100644 --- a/libavcodec/libgsmdec.c +++ b/libavcodec/libgsmdec.c @@ -134,7 +134,7 @@ 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 @@ -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 |