[vlc-commits] x264.c: move mbtree closer to other bitrate options

Ilkka Ollakka git at videolan.org
Thu Jan 5 09:25:19 CET 2012


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Jan  5 12:50:38 2012 +0200| [140a7dbc9bcb4cb717fd955e98d4c27abc077ffe] | committer: Ilkka Ollakka

x264.c: move mbtree closer to other bitrate options

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=140a7dbc9bcb4cb717fd955e98d4c27abc077ffe
---

 modules/codec/x264.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 5bcb4ed..0149cb6 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -847,6 +847,9 @@ static int  Open ( vlc_object_t *p_this )
     p_sys->param.rc.i_vbv_max_bitrate = var_GetInteger( p_enc, SOUT_CFG_PREFIX "vbv-maxrate" );
 
 
+    if( !var_GetBool( p_enc, SOUT_CFG_PREFIX "mbtree" ) )
+       p_sys->param.rc.b_mb_tree = var_GetBool( p_enc, SOUT_CFG_PREFIX "mbtree" );
+
     if( !var_GetBool( p_enc, SOUT_CFG_PREFIX "cabac" ) )
         p_sys->param.b_cabac = var_GetBool( p_enc, SOUT_CFG_PREFIX "cabac" );
 
@@ -1221,9 +1224,6 @@ static int  Open ( vlc_object_t *p_this )
         p_sys->param.rc.b_stat_read = i_val & 2;
     }
 
-    if( !var_GetBool( p_enc, SOUT_CFG_PREFIX "mbtree" ) )
-       p_sys->param.rc.b_mb_tree = var_GetBool( p_enc, SOUT_CFG_PREFIX "mbtree" );
-
     /* We need to initialize pthreadw32 before we open the encoder,
        but only once for the whole application. Since pthreadw32
        doesn't keep a refcount, do it ourselves. */



More information about the vlc-commits mailing list