mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
rc: finetune convergence failure fix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ed14517c23
commit
73e0ec2ff4
@ -866,7 +866,7 @@ static int init_pass2(MpegEncContext *s)
|
||||
assert(filter_size%2==1);
|
||||
|
||||
/* fixed I/B QP relative to P mode */
|
||||
for(i=0; i<rcc->num_entries; i++){
|
||||
for(i=FFMAX(0, rcc->num_entries-300); i<rcc->num_entries; i++){
|
||||
RateControlEntry *rce= &rcc->entry[i];
|
||||
|
||||
qscale[i]= get_diff_limited_q(s, rce, qscale[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user