[vlc-commits] commit: avcodec: fix vp8 default to check height for 720p (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sat Jun 5 22:20:47 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Jun 5 23:18:08 2010 +0300| [16ea0e630bc4cb792c132ff15d3d6a1f8a5e5f06] | committer: Ilkka Ollakka
avcodec: fix vp8 default to check height for 720p
also fix sub 720p defaults
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16ea0e630bc4cb792c132ff15d3d6a1f8a5e5f06
---
modules/codec/avcodec/encoder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 90e76e6..092dfee 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -606,7 +606,7 @@ int OpenEncoder( vlc_object_t *p_this )
if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ) )
p_context->gop_size = 120;
/* 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 */
if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "qmin" ) )
@@ -626,7 +626,7 @@ int OpenEncoder( vlc_object_t *p_this )
} else {
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;
}
More information about the vlc-commits
mailing list