x264enc: disable I weighted pred
authorOlivier Crête <tester@tester.ca>
Thu, 27 May 2010 03:16:46 +0000 (23:16 -0400)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 28 May 2010 11:15:42 +0000 (12:15 +0100)
If it is enabled, then it will be main profile instead of baseline.
This ensures maximum compatibility of the output stream until the
encoder configuration interface gets an overhaul with explicit
output profile selection.

Fixes #619776.

ext/x264/gstx264enc.c

index 9129aae174aec2cb7ae3db0394e4c9cbbfdf19a8..c3c64a5841d56ed2e3547373e1e6d1120f4d0ff8 100644 (file)
@@ -594,6 +594,7 @@ 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;
+  encoder->x264param.analyse.i_weighted_pred = 0;
   encoder->x264param.analyse.i_noise_reduction = encoder->noise_reduction;
   encoder->x264param.i_frame_reference = encoder->ref;
   encoder->x264param.i_bframe = encoder->bframes;