x264enc: Only set i_weighted_pred on versions where it exists

This commit is contained in:
Olivier Crête 2010-05-31 16:57:42 -04:00
parent c60638ab56
commit 2339add6d5

View file

@ -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;