Commit 539721c7 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: default gop=120 for vp80

(cherry picked from commit c5010ad3)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 0b0efe3d
...@@ -586,6 +586,9 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -586,6 +586,9 @@ int OpenEncoder( vlc_object_t *p_this )
{ {
/* Lets give bitrate tolerance */ /* Lets give bitrate tolerance */
p_context->bit_rate_tolerance = __MAX(2 * p_enc->fmt_out.i_bitrate, p_sys->i_vtolerance ); p_context->bit_rate_tolerance = __MAX(2 * p_enc->fmt_out.i_bitrate, p_sys->i_vtolerance );
/* default to 120 frames between keyframe */
if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ) )
p_context->gop_size = 120;
/* seems that ffmpeg presets have 720p as divider for buffers */ /* seems that ffmpeg presets have 720p as divider for buffers */
if( p_enc->fmt_out.video.i_width >= 720 ) if( p_enc->fmt_out.video.i_width >= 720 )
{ {
......
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