mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
x264enc: Only set i_weighted_pred on versions where it exists
This commit is contained in:
parent
c60638ab56
commit
2339add6d5
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue