]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/takdec.c
x86/vp9lpf: save a few mov in flat8in/hev masks calc.
[ffmpeg] / libavcodec / takdec.c
index fcbe10ad3cfcc12dac5f923db96d92bfc2c32c72..86ca3ac0134ad646134b6eea99d3e027cf118be6 100644 (file)
@@ -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);