X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Ftakdec.c;h=86ca3ac0134ad646134b6eea99d3e027cf118be6;hb=9a3b05b0a98952f13125fe45a4c0f68464b5942f;hp=fcbe10ad3cfcc12dac5f923db96d92bfc2c32c72;hpb=2d0d1f7eb3f74449063a4e9f770714f94920b720;p=ffmpeg diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index fcbe10ad3cf..86ca3ac0134 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -721,11 +721,9 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data, return AVERROR_INVALIDDATA; } - if (s->ti.bps != avctx->bits_per_raw_sample) { - avctx->bits_per_raw_sample = s->ti.bps; - if ((ret = set_bps_params(avctx)) < 0) - return ret; - } + avctx->bits_per_raw_sample = s->ti.bps; + if ((ret = set_bps_params(avctx)) < 0) + return ret; if (s->ti.sample_rate != avctx->sample_rate) { avctx->sample_rate = s->ti.sample_rate; set_sample_rate_params(avctx);