mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
RC: Fix initial buffer occupancy.
Fixes Ticket880
Regression since bf174a70cd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
887cd591a8
commit
9e34adfc02
@ -125,6 +125,8 @@ int ff_rate_control_init(MpegEncContext *s)
|
||||
rcc->last_qscale_for[i]=FF_QP2LAMBDA * 5;
|
||||
}
|
||||
rcc->buffer_index= s->avctx->rc_initial_buffer_occupancy;
|
||||
if (!rcc->buffer_index)
|
||||
rcc->buffer_index = s->avctx->rc_buffer_size * 3 / 4;
|
||||
|
||||
if(s->flags&CODEC_FLAG_PASS2){
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user