summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-10-26 17:18:41 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-10-26 17:18:41 +0000
commit936460ea72f714dade3c7e3d3c4bc0388216a568 (patch)
tree70e7e4064f95a05c7a9663106479beefcd8c8cc4
parent843665f109ee76b07564af09252e658198fb3b17 (diff)
downloadgst-plugins-bad-936460ea72f714dade3c7e3d3c4bc0388216a568.tar.gz
gst-plugins-bad-936460ea72f714dade3c7e3d3c4bc0388216a568.tar.bz2
gst-plugins-bad-936460ea72f714dade3c7e3d3c4bc0388216a568.zip
ext/x264/gstx264enc.c: Fix build against the libx264 version that ships with debian stable.
Original commit message from CVS: * ext/x264/gstx264enc.c: Fix build against the libx264 version that ships with debian stable.
-rw-r--r--ChangeLog5
-rw-r--r--ext/x264/gstx264enc.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8fb868dd..f883f773 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-26 Tim-Philipp Müller <tim at centricular dot net>
+
+ * ext/x264/gstx264enc.c:
+ Fix build against the libx264 version that ships with debian stable.
+
2007-10-26 Julien MOUTTE <julien@moutte.net>
* configure.ac:
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 21693b8d..70b94a70 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -593,7 +593,9 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder)
encoder->x264param.b_deblocking_filter = 1;
encoder->x264param.i_deblocking_filter_alphac0 = 0;
encoder->x264param.i_deblocking_filter_beta = 0;
+#ifdef X264_RC_ABR
encoder->x264param.rc.i_rc_method = X264_RC_ABR;
+#endif
encoder->x264param.rc.i_bitrate = encoder->bitrate;
encoder->x264param.rc.i_vbv_max_bitrate = encoder->bitrate;
encoder->x264param.rc.i_vbv_buffer_size