mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 13:50:58 +00:00
rc: fix convergence failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ed14517c23
)
This commit is contained in:
parent
1ec29b2da5
commit
4fbc35cd53
@ -866,6 +866,12 @@ 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++){
|
||||
RateControlEntry *rce= &rcc->entry[i];
|
||||
|
||||
qscale[i]= get_diff_limited_q(s, rce, qscale[i]);
|
||||
}
|
||||
|
||||
for(i=rcc->num_entries-1; i>=0; i--){
|
||||
RateControlEntry *rce= &rcc->entry[i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user