]> git.sesse.net Git - vlc/commitdiff
x264: set param.rc.i_lookahead to lower than default
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 17 Sep 2009 13:01:06 +0000 (16:01 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 17 Sep 2009 14:06:52 +0000 (17:06 +0300)
rtp-output without muxin doesn't seem to handle that delay.
(cherry picked from commit 367e624ea12feba1c55c79397768cd7515dda616)

modules/codec/x264.c

index 9b2b6780b667884419634522f4259fcdf58a6c87..1cc036e590676a0c49eacbc2c0dfcaa6e561fb1e 100644 (file)
@@ -1379,6 +1379,13 @@ static int  Open ( vlc_object_t *p_this )
 
 #endif
 
+#if X264_BUILD >= 69
+    /* 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=5;
+#endif
+
     /* Open the encoder */
     p_sys->h = x264_encoder_open( &p_sys->param );