projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c60638a
)
x264enc: Only set i_weighted_pred on versions where it exists
author
Olivier Crête
<olivier.crete@collabora.co.uk>
Mon, 31 May 2010 20:57:42 +0000
(16:57 -0400)
committer
Olivier Crête
<olivier.crete@collabora.co.uk>
Tue, 1 Jun 2010 17:44:06 +0000
(13:44 -0400)
ext/x264/gstx264enc.c
patch
|
blob
|
history
diff --git
a/ext/x264/gstx264enc.c
b/ext/x264/gstx264enc.c
index
c3c64a5
..
b717d01
100644
(file)
--- a/
ext/x264/gstx264enc.c
+++ b/
ext/x264/gstx264enc.c
@@
-594,7
+594,9
@@
gst_x264_enc_init_encoder (GstX264Enc * encoder)
encoder->x264param.analyse.inter = encoder->analyse;
encoder->x264param.analyse.b_transform_8x8 = encoder->dct8x8;
encoder->x264param.analyse.b_weighted_bipred = encoder->weightb;
+#if X264_BUILD > 78
encoder->x264param.analyse.i_weighted_pred = 0;
+#endif
encoder->x264param.analyse.i_noise_reduction = encoder->noise_reduction;
encoder->x264param.i_frame_reference = encoder->ref;
encoder->x264param.i_bframe = encoder->bframes;