[FFmpeg-cvslog] avcodec/dcaenc: do not change user requested bitrate

Paul B Mahol git at videolan.org
Mon Jan 25 17:14:00 CET 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan 25 16:54:53 2016 +0100| [5dc37a5d8abd18755c5a2cae0840c32579ec299c] | committer: Paul B Mahol

avcodec/dcaenc: do not change user requested bitrate

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5dc37a5d8abd18755c5a2cae0840c32579ec299c
---

 libavcodec/dcaenc.c |    1 -
 1 file changed, 1 deletion(-)

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))



More information about the ffmpeg-cvslog mailing list