Commit a0a4f1b5 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: fix vp8 default to check height for 720p

also fix sub 720p defaults
(cherry picked from commit 16ea0e630bc4cb792c132ff15d3d6a1f8a5e5f06)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 0cd315c7
...@@ -590,7 +590,7 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -590,7 +590,7 @@ int OpenEncoder( vlc_object_t *p_this )
if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ) ) if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ) )
p_context->gop_size = 120; 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_height >= 720 )
{ {
/* Check that we don't overrun users qmin/qmax values */ /* Check that we don't overrun users qmin/qmax values */
if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "qmin" ) ) if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "qmin" ) )
...@@ -610,7 +610,7 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -610,7 +610,7 @@ int OpenEncoder( vlc_object_t *p_this )
} else { } else {
if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "qmin" ) ) if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "qmin" ) )
{ {
p_context->mb_qmin = p_context->qmin = FF_QP2LAMBDA; p_context->mb_qmin = p_context->qmin = 1;
p_context->mb_lmin = p_context->lmin = FF_QP2LAMBDA; p_context->mb_lmin = p_context->lmin = FF_QP2LAMBDA;
} }
......
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