Mercurial > libavcodec.hg
changeset 94:7e263a256a6f libavcodec
fixed pcm bitrate
author | glantau |
---|---|
date | Mon, 24 Sep 2001 23:29:46 +0000 |
parents | bec00a2f18e2 |
children | 8bce253b537c |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sun Sep 23 17:17:46 2001 +0000 +++ b/utils.c Mon Sep 24 23:29:46 2001 +0000 @@ -264,13 +264,13 @@ 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;