Commit 030a86c6 authored by michael's avatar michael

fixing bquant_offset


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5179 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4e57ce7d
......@@ -94,7 +94,7 @@ float ff_xvid_rate_estimate_qscale(MpegEncContext *s, int dry_run){
xvid_plg_data.max_quant[0]= s->avctx->qmax;
xvid_plg_data.max_quant[1]= s->avctx->qmax;
xvid_plg_data.max_quant[2]= s->avctx->qmax; //FIXME i/b factor & offset
xvid_plg_data.bquant_offset = s->avctx->b_quant_offset;
xvid_plg_data.bquant_offset = 100 * s->avctx->b_quant_offset;
xvid_plg_data.bquant_ratio = 100 * s->avctx->b_quant_factor;
#if 0
......
......@@ -372,7 +372,7 @@ int ff_xvid_encode_init(AVCodecContext *avctx) {
/* Bframes */
xvid_enc_create.max_bframes = avctx->max_b_frames;
xvid_enc_create.bquant_offset = avctx->b_quant_offset;
xvid_enc_create.bquant_offset = 100 * avctx->b_quant_offset;
xvid_enc_create.bquant_ratio = 100 * avctx->b_quant_factor;
if( avctx->max_b_frames > 0 && !x->quicktime_format ) xvid_enc_create.global |= XVID_GLOBAL_PACKED;
......
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