From: Måns Rullgård Date: Tue, 15 Mar 2005 12:09:00 +0000 (+0000) Subject: Check/fix range of x264_param_t.rc.i_qp_constant. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ee5b2be9406eb8b9b11180f406febc944fd8845d;p=x264.git 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 --- diff --git a/encoder/encoder.c b/encoder/encoder.c index db263d33..68b66a9b 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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 )