Revision a190b7e9 libavcodec/utils.c

View differences:

libavcodec/utils.c
264 264
        case CODEC_ID_PCM_S16BE:
265 265
        case CODEC_ID_PCM_U16LE:
266 266
        case CODEC_ID_PCM_U16BE:
267
            bitrate = enc->sample_rate * 16;
267
            bitrate = enc->sample_rate * enc->channels * 16;
268 268
            break;
269 269
        case CODEC_ID_PCM_S8:
270 270
        case CODEC_ID_PCM_U8:
271 271
        case CODEC_ID_PCM_ALAW:
272 272
        case CODEC_ID_PCM_MULAW:
273
            bitrate = enc->sample_rate * 8;
273
            bitrate = enc->sample_rate * enc->channels * 8;
274 274
            break;
275 275
        default:
276 276
            bitrate = enc->bit_rate;

Also available in: Unified diff