Commit 5dc37a5d authored by Paul B Mahol's avatar Paul B Mahol

avcodec/dcaenc: do not change user requested bitrate

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 06f65fd0
......@@ -157,7 +157,6 @@ static int encode_init(AVCodecContext *avctx)
for (i = 0; ff_dca_bit_rates[i] < avctx->bit_rate; i++)
;
c->bitrate_index = i;
avctx->bit_rate = ff_dca_bit_rates[i];
c->frame_bits = FFALIGN((avctx->bit_rate * 512 + avctx->sample_rate - 1) / avctx->sample_rate, 32);
min_frame_bits = 132 + (493 + 28 * 32) * c->fullband_channels + c->lfe_channel * 72;
if (c->frame_bits < min_frame_bits || c->frame_bits > (DCA_MAX_FRAME_SIZE << 3))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment