]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pcm.c
fate/api-{jpeg,png}-codec-param: add missing codec dependencies
[ffmpeg] / libavcodec / pcm.c
index 2cb5a360d617f06e342f44cfa038601370b87879..9a1360254385ab7f88dba2c462c113e1590fd605 100644 (file)
@@ -47,7 +47,7 @@ static av_cold int pcm_encode_init(AVCodecContext *avctx)
 
     avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id);
     avctx->block_align           = avctx->channels * avctx->bits_per_coded_sample / 8;
-    avctx->bit_rate              = avctx->block_align * avctx->sample_rate * 8;
+    avctx->bit_rate              = avctx->block_align * 8LL * avctx->sample_rate;
 
     return 0;
 }