Mercurial > libavcodec.hg
comparison x264.c @ 4030:ffe1b004ecc7 libavcodec
Make ffmpeg work with x264 r592
author | lu_zero |
---|---|
date | Mon, 16 Oct 2006 17:44:29 +0000 |
parents | c8c591fe26f8 |
children | 903017d72ffe |
comparison
equal
deleted
inserted
replaced
4029:5160e1bdeff2 | 4030:ffe1b004ecc7 |
---|---|
144 x4->params.rc.b_stat_write = (avctx->flags & CODEC_FLAG_PASS1); | 144 x4->params.rc.b_stat_write = (avctx->flags & CODEC_FLAG_PASS1); |
145 if(avctx->flags & CODEC_FLAG_PASS2) x4->params.rc.b_stat_read = 1; | 145 if(avctx->flags & CODEC_FLAG_PASS2) x4->params.rc.b_stat_read = 1; |
146 else{ | 146 else{ |
147 if(avctx->crf){ | 147 if(avctx->crf){ |
148 x4->params.rc.i_rc_method = X264_RC_CRF; | 148 x4->params.rc.i_rc_method = X264_RC_CRF; |
149 x4->params.rc.i_rf_constant = avctx->crf; | 149 x4->params.rc.f_rf_constant = avctx->crf; |
150 }else if(avctx->cqp > -1){ | 150 }else if(avctx->cqp > -1){ |
151 x4->params.rc.i_rc_method = X264_RC_CQP; | 151 x4->params.rc.i_rc_method = X264_RC_CQP; |
152 x4->params.rc.i_qp_constant = avctx->cqp; | 152 x4->params.rc.i_qp_constant = avctx->cqp; |
153 } | 153 } |
154 } | 154 } |