]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/takdec.c
avfilter/vf_fade: fix color fading for planar rgb
[ffmpeg] / libavcodec / takdec.c
index 4fb58255328358fd395abee3ed07c9640b724fd8..8ec87ab50971141c67158536523f87effeafff67 100644 (file)
@@ -176,8 +176,8 @@ static void set_sample_rate_params(AVCodecContext *avctx)
     } else {
         shift = 0;
     }
-    s->uval           = FFALIGN(avctx->sample_rate + 511 >> 9, 4) << shift;
-    s->subframe_scale = FFALIGN(avctx->sample_rate + 511 >> 9, 4) << 1;
+    s->uval           = FFALIGN(avctx->sample_rate + 511LL >> 9, 4) << shift;
+    s->subframe_scale = FFALIGN(avctx->sample_rate + 511LL >> 9, 4) << 1;
 }
 
 static av_cold int tak_decode_init(AVCodecContext *avctx)