diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-16 02:32:07 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-22 01:05:59 +0200 |
commit | cd335de53f853087b45b53fa96b09ddf4ab01108 (patch) | |
tree | 2c7bb14378406caf0e7a4ab80f4b4f462237644e /libavcodec/dfpwmdec.c | |
parent | 9ffd0c46b1e266625c22151d0c459ddb234848a1 (diff) |
avcodec/dfpwmdec: Remove always-false check
This decoder does not have the AV_CODEC_CAP_CHANNEL_CONF set,
so that number of channels has to be set by the user before
avcodec_open2().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dfpwmdec.c')
-rw-r--r-- | libavcodec/dfpwmdec.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/dfpwmdec.c b/libavcodec/dfpwmdec.c index 532a955b4c..4ddb806561 100644 --- a/libavcodec/dfpwmdec.c +++ b/libavcodec/dfpwmdec.c @@ -85,11 +85,6 @@ static av_cold int dfpwm_dec_init(struct AVCodecContext *ctx) { DFPWMState *state = ctx->priv_data; - if (ctx->ch_layout.nb_channels <= 0) { - av_log(ctx, AV_LOG_ERROR, "Invalid number of channels\n"); - return AVERROR(EINVAL); - } - state->fq = 0; state->q = 0; state->s = 0; |