summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-09-24 23:29:46 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-09-24 23:29:46 +0000
commita190b7e94e39ab99f10357d776d72829f6b6ea9a (patch)
tree7d921b2366c0543d364466c9a8404251fb6066f4 /libavcodec
parent4972b26f24cef157b1954ebd9466303922f2a6c0 (diff)
downloadffmpeg-streaming-a190b7e94e39ab99f10357d776d72829f6b6ea9a.zip
ffmpeg-streaming-a190b7e94e39ab99f10357d776d72829f6b6ea9a.tar.gz
fixed pcm bitrate
Originally committed as revision 149 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d93c8d9..01c1c13 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -264,13 +264,13 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
case CODEC_ID_PCM_S16BE:
case CODEC_ID_PCM_U16LE:
case CODEC_ID_PCM_U16BE:
- bitrate = enc->sample_rate * 16;
+ bitrate = enc->sample_rate * enc->channels * 16;
break;
case CODEC_ID_PCM_S8:
case CODEC_ID_PCM_U8:
case CODEC_ID_PCM_ALAW:
case CODEC_ID_PCM_MULAW:
- bitrate = enc->sample_rate * 8;
+ bitrate = enc->sample_rate * enc->channels * 8;
break;
default:
bitrate = enc->bit_rate;
OpenPOWER on IntegriCloud