Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
EL5
>
mpeg4ip
> mpeg4ip-1.4.1-x264r48.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mpeg4ip-1.4.1-x264r48.patch of Package mpeg4ip (Revision 1)
Currently displaying revision
1
,
show latest
--- server/mp4live/video_x264.cpp +++ server/mp4live/video_x264.cpp @@ -168,7 +168,16 @@ 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.b_cbr = Profile()->GetBoolValue(CFG_X264_USE_CBR) ? 1 : 0; +#else + if (Profile()->GetBoolValue(CFG_X264_USE_CBR)) + { + /* x264 r48 api doesn't have b_cbr anymore */ + m_param.rc.i_rc_method = X264_RC_CQP; + m_param.rc.i_qp_constant = 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)) {