]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pcm-mpeg.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / pcm-mpeg.c
index 032bdae861eb23ff82ff4b98810f2bc7c3eda61e..207f12134a8b7394d79535ed83b4712c3e8aa6b3 100644 (file)
@@ -110,12 +110,12 @@ static int pcm_bluray_parse_header(AVCodecContext *avctx,
         return -1;
     }
 
-    avctx->bit_rate = avctx->channels * avctx->sample_rate *
+    avctx->bit_rate = FFALIGN(avctx->channels, 2) * avctx->sample_rate *
                       avctx->bits_per_coded_sample;
 
     if (avctx->debug & FF_DEBUG_PICT_INFO)
         av_dlog(avctx,
-                "pcm_bluray_parse_header: %d channels, %d bits per sample, %d kHz, %d kbit\n",
+                "pcm_bluray_parse_header: %d channels, %d bits per sample, %d Hz, %d bit/s\n",
                 avctx->channels, avctx->bits_per_coded_sample,
                 avctx->sample_rate, avctx->bit_rate);
     return 0;