[vlc-devel] commit: (x264) b_adapt is still a boolean, so use the boolean value to set i_bframe_adaptive. (Jean-Paul Saman )

git version control git at videolan.org
Tue Sep 23 23:28:08 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Sat Sep 20 07:51:12 2008 +0200| [b8cc196c68b3f31fa602639241f7ce18415809ef] | committer: Jean-Paul Saman 

(x264) b_adapt is still a boolean, so use the boolean value to set i_bframe_adaptive.

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

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

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 84ade08..dc84bb0 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1039,7 +1039,7 @@ 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_int;
+    p_sys->param.i_bframe_adaptive = val.b_bool ? X264_B_ADAPT_FAST : X264_B_ADAPT_NONE;
 #else
     p_sys->param.b_bframe_adaptive = val.b_bool;
 #endif




More information about the vlc-devel mailing list