x264enc: Adapt to slightly modified x264 API

Fixes #599095.
This commit is contained in:
Robert Swain 2009-10-20 20:00:44 +01:00 committed by Mark Nauwelaerts
parent 59f6c82c32
commit 0a36965808

View file

@ -582,7 +582,12 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder)
encoder->x264param.analyse.i_noise_reduction = encoder->noise_reduction; encoder->x264param.analyse.i_noise_reduction = encoder->noise_reduction;
encoder->x264param.i_frame_reference = encoder->ref; encoder->x264param.i_frame_reference = encoder->ref;
encoder->x264param.i_bframe = encoder->bframes; encoder->x264param.i_bframe = encoder->bframes;
#if X264_BUILD < 78
encoder->x264param.b_bframe_pyramid = encoder->b_pyramid; encoder->x264param.b_bframe_pyramid = encoder->b_pyramid;
#else
encoder->x264param.i_bframe_pyramid =
encoder->b_pyramid ? X264_B_PYRAMID_NORMAL : X264_B_PYRAMID_NONE;
#endif
#if X264_BUILD < 63 #if X264_BUILD < 63
encoder->x264param.b_bframe_adaptive = encoder->b_adapt; encoder->x264param.b_bframe_adaptive = encoder->b_adapt;
#else #else