[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:21:45 CEST 2010
vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Jun 5 23:18:08 2010 +0300| [a0a4f1b5fcb9050a7d88e4f5a9933186814f4886] | committer: Ilkka Ollakka
avcodec: fix vp8 default to check height for 720p
also fix sub 720p defaults
(cherry picked from commit 16ea0e630bc4cb792c132ff15d3d6a1f8a5e5f06)
Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=a0a4f1b5fcb9050a7d88e4f5a9933186814f4886
---
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 0008e8c..6956f2a 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -590,7 +590,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" ) )
@@ -610,7 +610,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