summaryrefslogtreecommitdiff
path: root/multimedia/gst-plugins0.10-bad/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gst-plugins0.10-bad/patches/patch-ab')
-rw-r--r--multimedia/gst-plugins0.10-bad/patches/patch-ab21
1 files changed, 17 insertions, 4 deletions
diff --git a/multimedia/gst-plugins0.10-bad/patches/patch-ab b/multimedia/gst-plugins0.10-bad/patches/patch-ab
index 73d139a82a4..50c6a21d7a8 100644
--- a/multimedia/gst-plugins0.10-bad/patches/patch-ab
+++ b/multimedia/gst-plugins0.10-bad/patches/patch-ab
@@ -1,8 +1,21 @@
-$NetBSD: patch-ab,v 1.3 2008/10/30 21:21:32 wiz Exp $
+$NetBSD: patch-ab,v 1.4 2009/01/09 16:43:42 drochner Exp $
---- ext/x264/gstx264enc.c.orig 2008-10-10 23:13:43.000000000 +0000
+--- ext/x264/gstx264enc.c.orig 2008-12-21 21:54:04.000000000 +0100
+++ ext/x264/gstx264enc.c
-@@ -661,8 +661,7 @@ gst_x264_enc_header_buf (GstX264Enc * en
+@@ -541,7 +541,12 @@ 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 = encoder->b_adapt;
++#else
++ encoder->x264param.i_bframe_adaptive =
++ encoder->b_adapt ? X264_B_ADAPT_FAST : X264_B_ADAPT_NONE;
++#endif
+ encoder->x264param.b_interlaced = encoder->interlaced;
+ encoder->x264param.b_deblocking_filter = 1;
+ encoder->x264param.i_deblocking_filter_alphac0 = 0;
+@@ -661,8 +666,7 @@ gst_x264_enc_header_buf (GstX264Enc * en
/* x264 is expected to return an SEI (some identification info),
* followed by an SPS and PPS */
if (i_nal != 3 || nal[1].i_type != 7 || nal[2].i_type != 8) {
@@ -12,7 +25,7 @@ $NetBSD: patch-ab,v 1.3 2008/10/30 21:21:32 wiz Exp $
return NULL;
}
-@@ -935,8 +934,7 @@ gst_x264_enc_encode_frame (GstX264Enc *
+@@ -935,8 +939,7 @@ gst_x264_enc_encode_frame (GstX264Enc *
duration = GST_BUFFER_DURATION (in_buf);
gst_buffer_unref (in_buf);
} else {