1
0
forked from ports/contrib

gst-plugins-bad: x264 compile patch

This commit is contained in:
Danny Rawlins 2008-12-19 20:46:42 +11:00
parent 50ea1e4848
commit 6e68617b0a
3 changed files with 20 additions and 3 deletions

View File

@ -1 +1,2 @@
aecc0e5a2c6e5e3561b2024860e7b7cb gst-plugins-bad-0.10.8-x264_fix.patch
ddc8f92dab0081f131650ad6c95908b8 gst-plugins-bad-0.10.8.tar.bz2

View File

@ -7,10 +7,12 @@
name=gst-plugins-bad
version=0.10.8
release=1
source=(http://gstreamer.freedesktop.org/src/$name/$name-$version.tar.bz2)
source=(http://gstreamer.freedesktop.org/src/$name/$name-$version.tar.bz2
gst-plugins-bad-0.10.8-x264_fix.patch)
build() {
cd gst-plugins-bad-$version
cd $name-$version
patch -p 1 -i $SRC/gst-plugins-bad-0.10.8-x264_fix.patch
./configure \
--prefix=/usr \
@ -25,4 +27,3 @@ build() {
make
make DESTDIR=$PKG install
}

View File

@ -0,0 +1,15 @@
diff -pruN gst-plugins-bad-0.10.8.orig/ext/x264/gstx264enc.c gst-plugins-bad-0.10.8/ext/x264/gstx264enc.c
--- gst-plugins-bad-0.10.8.orig/ext/x264/gstx264enc.c 2008-12-19 20:35:49.108927861 +1100
+++ gst-plugins-bad-0.10.8/ext/x264/gstx264enc.c 2008-12-19 20:39:20.363551075 +1100
@@ -597,7 +597,11 @@ gst_x264_enc_init_encoder (GstX264Enc *
encoder->x264param.i_frame_reference = encoder->ref;
encoder->x264param.i_bframe = encoder->bframes;
encoder->x264param.b_bframe_pyramid = encoder->b_pyramid;
+#if X264_BUILD < 63
encoder->x264param.b_bframe_adaptive = 0;
+#else
+ encoder->x264param.i_bframe_adaptive = 0;
+#endif
encoder->x264param.b_deblocking_filter = 1;
encoder->x264param.i_deblocking_filter_alphac0 = 0;
encoder->x264param.i_deblocking_filter_beta = 0;