Commit ee5b2be9 authored by Måns Rullgård's avatar Måns Rullgård

Check/fix range of x264_param_t.rc.i_qp_constant.


git-svn-id: svn://svn.videolan.org/x264/trunk@174 df754926-b1dd-0310-bc7b-ec298dee348c
parent 94086b8b
......@@ -405,6 +405,7 @@ x264_t *x264_encoder_open ( x264_param_t *param )
h->param.rc.f_qblur = 0;
if( h->param.rc.f_complexity_blur < 0 )
h->param.rc.f_complexity_blur = 0;
h->param.rc.i_qp_constant = x264_clip3(h->param.rc.i_qp_constant, 0, 51);
/* VUI */
if( h->param.vui.i_sar_width > 0 && h->param.vui.i_sar_height > 0 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment