Skip to content
Snippets Groups Projects
Commit a190b7e9 authored by Fabrice Bellard's avatar Fabrice Bellard
Browse files

fixed pcm bitrate

Originally committed as revision 149 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4972b26f
No related branches found
No related tags found
No related merge requests found
...@@ -264,13 +264,13 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) ...@@ -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_S16BE:
case CODEC_ID_PCM_U16LE: case CODEC_ID_PCM_U16LE:
case CODEC_ID_PCM_U16BE: case CODEC_ID_PCM_U16BE:
bitrate = enc->sample_rate * 16; bitrate = enc->sample_rate * enc->channels * 16;
break; break;
case CODEC_ID_PCM_S8: case CODEC_ID_PCM_S8:
case CODEC_ID_PCM_U8: case CODEC_ID_PCM_U8:
case CODEC_ID_PCM_ALAW: case CODEC_ID_PCM_ALAW:
case CODEC_ID_PCM_MULAW: case CODEC_ID_PCM_MULAW:
bitrate = enc->sample_rate * 8; bitrate = enc->sample_rate * enc->channels * 8;
break; break;
default: default:
bitrate = enc->bit_rate; bitrate = enc->bit_rate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment