[vlc-commits] commit: x264: use default libx264 lookahead-value (Ilkka Ollakka )

git at videolan.org git at videolan.org
Thu Oct 14 20:12:12 CEST 2010


vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Sep 28 00:12:18 2010 +0300| [b386a19b1f8837f488f08cd93b2347db6f54f382] | committer: Ilkka Ollakka 

x264: use default libx264 lookahead-value
(cherry picked from commit 444c6a067575f5ec5a002a2204c31e734f50aa04)

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>
(manually removed string-change)

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

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

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index a22ed41..d829463 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -619,7 +619,7 @@ vlc_module_begin ()
                  TRELLIS_LONGTEXT, false )
         change_integer_range( 0, 2 )
 
-    add_integer( SOUT_CFG_PREFIX "lookahead", 5, NULL, LOOKAHEAD_TEXT,
+    add_integer( SOUT_CFG_PREFIX "lookahead", 40, NULL, LOOKAHEAD_TEXT,
                  LOOKAHEAD_LONGTEXT, false )
         change_integer_range( 0, 60 )
 
@@ -1258,10 +1258,10 @@ static int  Open ( vlc_object_t *p_this )
     vlc_mutex_unlock( &pthread_win32_mutex );
 #endif
 
-    /* Set lookahead value to lower than default,
-     * as rtp-output without mux doesn't handle
-     * difference that well yet*/
-    p_sys->param.rc.i_lookahead= var_GetInteger( p_enc, SOUT_CFG_PREFIX "lookahead" );
+    if( var_GetInteger( p_enc, SOUT_CFG_PREFIX "lookahead" ) != 40 )
+    {
+       p_sys->param.rc.i_lookahead = var_GetInteger( p_enc, SOUT_CFG_PREFIX "lookahead" );
+    }
 
     /* We don't want repeated headers, we repeat p_extra ourself if needed */
     p_sys->param.b_repeat_headers = 0;



More information about the vlc-commits mailing list