[vlc-devel] commit: x264: set param.rc.i_lookahead to lower than default ( Ilkka Ollakka )

git version control git at videolan.org
Thu Sep 17 16:15:47 CEST 2009


vlc | branch: 1.0-bugfix | Ilkka Ollakka <ileoo at videolan.org> | Thu Sep 17 16:01:06 2009 +0300| [367e624ea12feba1c55c79397768cd7515dda616] | committer: Ilkka Ollakka 

x264: set param.rc.i_lookahead to lower than default

rtp-output without muxin doesn't seem to handle that delay.

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

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

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 24546c0..e76ac3b 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1328,6 +1328,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 );
 




More information about the vlc-devel mailing list