[vlc-devel] [PATCH] Add support for x264 >= 63

Dominique Leuenberger dominique at leuenberger.net
Thu Sep 18 20:13:45 CEST 2008


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

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 5ff5c10..65fa3f7 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1038,7 +1038,11 @@ static int  Open ( vlc_object_t *p_this )
 
 #if X264_BUILD >= 0x0013
     var_Get( p_enc, SOUT_CFG_PREFIX "b-adapt", &val );
+#if X264_BUILD >= 63
+    p_sys->param.i_bframe_adaptive = val.i_bool;
+#else
     p_sys->param.b_bframe_adaptive = val.b_bool;
+#endif
 
     var_Get( p_enc, SOUT_CFG_PREFIX "b-bias", &val );
     if( val.i_int >= -100 && val.i_int <= 100 )
-- 
1.5.4.5




More information about the vlc-devel mailing list