From: Loren Merritt Date: Sun, 30 Oct 2005 23:42:24 +0000 (+0000) Subject: in constant QP mode, write that QP in the PPS to save a few bits in each slice header. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=b179e4740f7624ea1be4db0682a658fe6822a9e8;p=x264.git in constant QP mode, write that QP in the PPS to save a few bits in each slice header. git-svn-id: svn://svn.videolan.org/x264/trunk@348 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/set.c b/encoder/set.c index 7b79efc4..1cc3c255 100644 --- a/encoder/set.c +++ b/encoder/set.c @@ -365,7 +365,7 @@ void x264_pps_init( x264_pps_t *pps, int i_id, x264_param_t *param, x264_sps_t * pps->b_weighted_pred = 0; pps->b_weighted_bipred = param->analyse.b_weighted_bipred ? 2 : 0; - pps->i_pic_init_qp = 26; + pps->i_pic_init_qp = param->rc.b_cbr ? 26 : param->rc.i_qp_constant; pps->i_pic_init_qs = 26; pps->i_chroma_qp_index_offset = param->analyse.i_chroma_qp_offset;