summaryrefslogtreecommitdiff
path: root/multimedia/vlc08/patches/patch-x264.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/vlc08/patches/patch-x264.c')
-rw-r--r--multimedia/vlc08/patches/patch-x264.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/multimedia/vlc08/patches/patch-x264.c b/multimedia/vlc08/patches/patch-x264.c
new file mode 100644
index 00000000000..f738e7b9c18
--- /dev/null
+++ b/multimedia/vlc08/patches/patch-x264.c
@@ -0,0 +1,35 @@
+$NetBSD: patch-x264.c,v 1.1 2009/01/28 17:53:37 sborrill Exp $
+
+Fix build with version of x264-devel currently in pkgsrc
+
+--- modules/codec/x264.c.orig 2009-01-28 11:57:28.000000000 +0000
++++ modules/codec/x264.c 2009-01-28 12:06:20.000000000 +0000
+@@ -889,8 +889,10 @@
+ #endif
+
+ #if X264_BUILD >= 0x0013
++#if X264_BUILD < 65
+ var_Get( p_enc, SOUT_CFG_PREFIX "b-adapt", &val );
+ 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 )
+@@ -930,7 +932,7 @@
+ p_sys->param.analyse.i_trellis = val.i_int;
+ #endif
+
+-#if X264_BUILD >= 41
++#if X264_BUILD >= 41 && X264_BUILD < 65
+ var_Get( p_enc, SOUT_CFG_PREFIX "b-rdo", &val );
+ p_sys->param.analyse.b_bframe_rdo = val.b_bool;
+ #endif
+@@ -940,7 +942,7 @@
+ p_sys->param.analyse.b_fast_pskip = val.b_bool;
+ #endif
+
+-#if X264_BUILD >= 43
++#if X264_BUILD >= 43 && X264_BUILD < 65
+ var_Get( p_enc, SOUT_CFG_PREFIX "bime", &val );
+ p_sys->param.analyse.b_bidir_me = val.b_bool;
+ #endif