summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-01-25 16:54:53 +0100
committerPaul B Mahol <onemda@gmail.com>2016-01-25 17:10:49 +0100
commit5dc37a5d8abd18755c5a2cae0840c32579ec299c (patch)
treef553eb70abbf0d48cd7aba62cfd04e93fbfeafba /libavcodec
parent06f65fd026a1a329ecb151f07fc08ca68499cad7 (diff)
downloadffmpeg-streaming-5dc37a5d8abd18755c5a2cae0840c32579ec299c.zip
ffmpeg-streaming-5dc37a5d8abd18755c5a2cae0840c32579ec299c.tar.gz
avcodec/dcaenc: do not change user requested bitrate
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dcaenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c
index ac933dc..70e9230 100644
--- a/libavcodec/dcaenc.c
+++ b/libavcodec/dcaenc.c
@@ -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))
OpenPOWER on IntegriCloud