[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec xvidff.c, 1.7, 1.8 xvid_rc.c, 1.1, 1.2

Michael Niedermayer CVS michael
Sat Mar 18 03:46:41 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv2142

Modified Files:
	xvidff.c xvid_rc.c 
Log Message:
fixing bquant_offset


Index: xvidff.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/xvidff.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- xvidff.c	12 Jan 2006 22:43:17 -0000	1.7
+++ xvidff.c	18 Mar 2006 02:46:39 -0000	1.8
@@ -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;
 

Index: xvid_rc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/xvid_rc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- xvid_rc.c	24 Jan 2006 21:57:26 -0000	1.1
+++ xvid_rc.c	18 Mar 2006 02:46:39 -0000	1.2
@@ -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





More information about the ffmpeg-cvslog mailing list