[MPlayer-dev-eng] PATCHES

Marco "elcabesa" Belli elcabesa at inwind.it
Mon Dec 30 19:19:13 CET 2002


i posted a patch but does not see any reply=)

so this is the patch for xvid codec=)
-------------- next part --------------
? out.txt
Index: libmpcodecs/ve_xvid.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_xvid.c,v
retrieving revision 1.13
diff -u -d -B -r1.13 ve_xvid.c
--- libmpcodecs/ve_xvid.c	27 Dec 2002 22:43:19 -0000	1.13
+++ libmpcodecs/ve_xvid.c	29 Dec 2002 16:08:07 -0000
@@ -389,14 +389,17 @@
     // get quantizers & I/P decision from the VBR engine
 #ifdef XVID_API_UNSTABLE
     if (xvidenc_max_bframes >= 1) {
-	if (!xvidenc_fixed_quant) {
+	if (xvidenc_fixed_quant!=0) {
 	    // hack, the internal VBR engine isn't fixed-quant aware
 	    fp->enc_frame.quant = xvidenc_fixed_quant;
 	    fp->enc_frame.intra = -1;
 	    fp->enc_frame.bquant = (xvidenc_fixed_quant * xvidenc_bquant_ratio + xvidenc_bquant_offset) / 100;
-	} else
+	} else {
 	    // use the internal VBR engine since the external one isn't bframe aware
-	    fp->enc_frame.quant = fp->enc_frame.intra = fp->enc_frame.bquant = -1;
+	    fp->enc_frame.quant =0;
+	    fp->enc_frame.intra =-1;
+	    fp->enc_frame.bquant = 0;
+	}
     } else {
 	fp->enc_frame.quant = vbrGetQuant(&fp->vbr_state);
 	fp->enc_frame.intra = vbrGetIntra(&fp->vbr_state);


More information about the MPlayer-dev-eng mailing list