Commit 02bf9150 authored by michael's avatar michael

fix initial vbv buffer underflow


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3556 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent db862452
...@@ -3131,6 +3131,7 @@ static void opt_output_file(const char *filename) ...@@ -3131,6 +3131,7 @@ static void opt_output_file(const char *filename)
video_enc->rc_max_rate = video_rc_max_rate; video_enc->rc_max_rate = video_rc_max_rate;
video_enc->rc_min_rate = video_rc_min_rate; video_enc->rc_min_rate = video_rc_min_rate;
video_enc->rc_buffer_size = video_rc_buffer_size; video_enc->rc_buffer_size = video_rc_buffer_size;
video_enc->rc_initial_buffer_occupancy = video_rc_buffer_size*3/4;
video_enc->rc_buffer_aggressivity= video_rc_buffer_aggressivity; video_enc->rc_buffer_aggressivity= video_rc_buffer_aggressivity;
video_enc->rc_initial_cplx= video_rc_initial_cplx; video_enc->rc_initial_cplx= video_rc_initial_cplx;
video_enc->i_quant_factor = video_i_qfactor; video_enc->i_quant_factor = video_i_qfactor;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment