mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
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>
This commit is contained in:
parent
9ffd0c46b1
commit
cd335de53f
@ -85,11 +85,6 @@ static av_cold int dfpwm_dec_init(struct AVCodecContext *ctx)
|
|||||||
{
|
{
|
||||||
DFPWMState *state = ctx->priv_data;
|
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->fq = 0;
|
||||||
state->q = 0;
|
state->q = 0;
|
||||||
state->s = 0;
|
state->s = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user