]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pcm.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / pcm.c
index da2adea66a2a144cee085f95c48730b905abf4f9..c72b2003c4698657117f0d57f344c5b36c769302 100644 (file)
@@ -48,6 +48,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->coded_frame           = avcodec_alloc_frame();
     if (!avctx->coded_frame)
         return AVERROR(ENOMEM);