]> granicus.if.org Git - libx264/commit
Fix two bugs in 2-pass ratecontrol
authorFiona Glaser <fiona@x264.com>
Sat, 12 Dec 2009 01:22:18 +0000 (17:22 -0800)
committerFiona Glaser <fiona@x264.com>
Tue, 15 Dec 2009 20:45:06 +0000 (12:45 -0800)
commitf30aed6d810ef408cbf19cc6760605b0b87cbfde
tree27582360f1c7aa6e5b6c55cb5c82c7a6fe93d444
parent7f0ef681aa92c585fcb3534b370c7ac60e4866ec
Fix two bugs in 2-pass ratecontrol
last_qscale_for wasn't set during the 2pass init code.
abr_buffer was way too small in the case of multiple threads, so accordingly increase its buffer size based on the number of threads.
May significantly increase quality with many threads in 2-pass mode, especially in cases with extremely large I-frames, such as anime.
encoder/ratecontrol.c