aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vlc
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2006-11-04 05:48:13 +0800
committerahze <ahze@FreeBSD.org>2006-11-04 05:48:13 +0800
commit0d5c8817bd36daeac3b9bc8cc8fddb43021af033 (patch)
treecb92912c9c676924f9fd04c4bc3cf68881c3a41e /multimedia/vlc
parent55781f169fd4cedcb3868382d2971d7f7f11f1b2 (diff)
downloadfreebsd-ports-gnome-0d5c8817bd36daeac3b9bc8cc8fddb43021af033.tar.gz
freebsd-ports-gnome-0d5c8817bd36daeac3b9bc8cc8fddb43021af033.tar.zst
freebsd-ports-gnome-0d5c8817bd36daeac3b9bc8cc8fddb43021af033.zip
- Fix build with latest x264
Reported by: pointyhat via kris
Diffstat (limited to 'multimedia/vlc')
-rw-r--r--multimedia/vlc/files/patch-modules_codec_x264.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/multimedia/vlc/files/patch-modules_codec_x264.c b/multimedia/vlc/files/patch-modules_codec_x264.c
index 2ff0294a2ab2..93a3fc8debd0 100644
--- a/multimedia/vlc/files/patch-modules_codec_x264.c
+++ b/multimedia/vlc/files/patch-modules_codec_x264.c
@@ -1,6 +1,6 @@
---- modules/codec/x264.c.orig Wed Aug 9 21:24:08 2006
-+++ modules/codec/x264.c Wed Aug 9 21:24:27 2006
-@@ -588,7 +588,7 @@
+--- modules/codec/x264.c.orig Sat May 6 15:52:19 2006
++++ modules/codec/x264.c Fri Nov 3 16:47:49 2006
+@@ -547,7 +547,7 @@
/* cbr = 1 overrides qp or crf and sets an average bitrate
but maxrate = average bitrate is needed for "real" CBR */
@@ -9,3 +9,15 @@
var_Get( p_enc, SOUT_CFG_PREFIX "qpstep", &val );
if( val.i_int >= 0 && val.i_int <= 51 ) p_sys->param.rc.i_qp_step = val.i_int;
+@@ -737,7 +737,11 @@
+ #if X264_BUILD >= 37
+ var_Get( p_enc, SOUT_CFG_PREFIX "crf", &val );
+ if( val.i_int >= 0 && val.i_int <= 51 ) /* crf != 0 overrides qp */
++#if X264_BUILD >= 54
++ p_sys->param.rc.f_rf_constant = val.i_int;
++#else
+ p_sys->param.rc.i_rf_constant = val.i_int;
++#endif
+ #endif
+
+ #if X264_BUILD >= 39