diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-11-11 14:34:27 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-11-11 14:34:27 +0000 |
commit | 2c5168afed8ddd798dae5909dba85ae3b611f894 (patch) | |
tree | c192a9e126312da1e897c791bd76dd10a1b5d564 /libavcodec/libx264.c | |
parent | 6ed3bace9708fad6a656a187a3b182bba21006fa (diff) | |
download | ffmpeg-2c5168afed8ddd798dae5909dba85ae3b611f894.tar.gz |
Remove bitrate tolerance from libx264 interface
Nobody ever uses it correctly, and ffmpeg sets it incorrectly, so we'll just
leave it out.
Originally committed as revision 25720 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 6da7f2ae03..f550c6a433 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -273,9 +273,6 @@ static av_cold int X264_init(AVCodecContext *avctx) if (avctx->level > 0) x4->params.i_level_idc = avctx->level; - x4->params.rc.f_rate_tolerance = - (float)avctx->bit_rate_tolerance/avctx->bit_rate; - if ((avctx->rc_buffer_size != 0) && (avctx->rc_initial_buffer_occupancy <= avctx->rc_buffer_size)) { x4->params.rc.f_vbv_buffer_init = |