diff -urN mpeg4ip-1.5.orig/server/mp4live/video_x264.cpp mpeg4ip-1.5/server/mp4live/video_x264.cpp --- mpeg4ip-1.5.orig/server/mp4live/video_x264.cpp 2006-07-04 12:19:38 +0300 +++ mpeg4ip-1.5/server/mp4live/video_x264.cpp 2006-07-31 00:40:35 +0300 @@ -168,7 +168,11 @@ m_param.i_bframe = 0; //debug_message("h264 b frames %d", m_param.i_bframe); m_param.rc.i_bitrate = Profile()->GetIntegerValue(CFG_VIDEO_BIT_RATE); +#if X264_BUILD >= 48 + m_param.rc.i_rc_method = Profile()->GetBoolValue(CFG_X264_USE_CBR) ? X264_RC_ABR : X264_RC_CQP; +#else m_param.rc.b_cbr = Profile()->GetBoolValue(CFG_X264_USE_CBR) ? 1 : 0; +#endif m_param.rc.f_rate_tolerance = Profile()->GetFloatValue(CFG_X264_BIT_RATE_TOLERANCE); if (Profile()->GetBoolValue(CFG_X264_USE_VBV)) { if (Profile()->GetBoolValue(CFG_X264_FORCE_BASELINE)) {