changeset 3202:89348aaf566e libavcodec

fixing bquant_offset
author michael
date Sat, 18 Mar 2006 02:46:39 +0000
parents 35f5c9a8bc83
children a78cc2e4b90e
files xvid_rc.c xvidff.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xvid_rc.c	Sat Mar 18 02:29:58 2006 +0000
+++ b/xvid_rc.c	Sat Mar 18 02:46:39 2006 +0000
@@ -94,7 +94,7 @@
     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
--- a/xvidff.c	Sat Mar 18 02:29:58 2006 +0000
+++ b/xvidff.c	Sat Mar 18 02:46:39 2006 +0000
@@ -372,7 +372,7 @@
 
     /* 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;