diff options
author | ahze <ahze@FreeBSD.org> | 2006-11-04 06:10:18 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2006-11-04 06:10:18 +0800 |
commit | 26678403a882690d117865b92b198127a6a7b9f6 (patch) | |
tree | 8977e6ab1406c31a06d68dfb5729fcefa7fe8302 /multimedia | |
parent | 0d5c8817bd36daeac3b9bc8cc8fddb43021af033 (diff) | |
download | freebsd-ports-gnome-26678403a882690d117865b92b198127a6a7b9f6.tar.gz freebsd-ports-gnome-26678403a882690d117865b92b198127a6a7b9f6.tar.zst freebsd-ports-gnome-26678403a882690d117865b92b198127a6a7b9f6.zip |
Fix x264
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c b/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c index 06e2b08317e4..17ebf5cd9a4e 100644 --- a/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c +++ b/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c @@ -1,5 +1,5 @@ ---- libmpcodecs/ve_x264.c.orig Sun Jun 11 20:35:41 2006 -+++ libmpcodecs/ve_x264.c Sun Aug 20 12:11:22 2006 +--- libmpcodecs/ve_x264.c.orig Sun Jun 11 18:35:41 2006 ++++ libmpcodecs/ve_x264.c Fri Nov 3 17:05:22 2006 @@ -208,7 +208,7 @@ }; @@ -9,17 +9,19 @@ int i; if (!str) return 0; for (i = 0; i < length; i++) { -@@ -247,7 +247,10 @@ +@@ -247,8 +247,11 @@ mod->param.i_deblocking_filter_beta = deblockbeta; mod->param.b_cabac = cabac; + mod->param.rc.i_rc_method = X264_RC_CQP; mod->param.rc.i_qp_constant = qp_constant; +- mod->param.rc.i_rf_constant = rf_constant; + if(rf_constant > 0) + mod->param.rc.i_rc_method = X264_RC_CRF; - mod->param.rc.i_rf_constant = rf_constant; ++ mod->param.rc.f_rf_constant = rf_constant; if(qp_min > qp_constant) qp_min = qp_constant; + if(qp_max < qp_constant) @@ -275,7 +278,7 @@ "VBV requires both vbv_maxrate and vbv_bufsize.\n"); return 0; |