[Mplayer-cvslog] CVS: main/libmpcodecs ve_xvid.c,1.22,1.23

Rémi Guyomarch CVS rguyom at mplayerhq.hu
Fri Apr 4 22:45:25 CEST 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv8064/libmpcodecs

Modified Files:
	ve_xvid.c 
Log Message:

100l.
Noticed by Andreas Hess <jaska at gmx dot net>



Index: ve_xvid.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_xvid.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- ve_xvid.c	4 Apr 2003 15:22:59 -0000	1.22
+++ ve_xvid.c	4 Apr 2003 20:45:05 -0000	1.23
@@ -239,9 +239,9 @@
 	fp->nb_frames = 0;
 	xvid_error[0] = xvid_error[1] = xvid_error[2] = 0;
     }
-#endif
     if (xvidenc_greyscale)
 	enc_param.global |= XVID_GREYSCALE;
+#endif
     enc_param.rc_reaction_delay_factor = xvidenc_rc_reaction_delay_factor;
     enc_param.rc_averaging_period = xvidenc_rc_averaging_period;
     enc_param.rc_buffer = xvidenc_rc_buffer;
@@ -269,11 +269,11 @@
     fp->enc_frame.general = XVID_HALFPEL | (xvidenc_mpeg_quant ? XVID_MPEGQUANT : XVID_H263QUANT);
     if (xvidenc_4mv)
 	fp->enc_frame.general |= XVID_INTER4V;
-    if (xvidenc_lumi_mask)
-	fp->enc_frame.general |= XVID_LUMIMASKING;
     if (xvidenc_interlacing)
 	fp->enc_frame.general |= XVID_INTERLACING;
 #ifdef XVID_API_UNSTABLE
+    if (xvidenc_lumi_mask)
+	fp->enc_frame.general |= XVID_LUMIMASKING;
     if (xvidenc_qpel) {
 	fp->enc_frame.general |= XVID_QUARTERPEL;
 	fp->enc_frame.motion |= PMV_QUARTERPELREFINE16 | PMV_QUARTERPELREFINE8;
@@ -303,6 +303,9 @@
 	fp->enc_frame.general |= XVID_HQACPRED;
     if (xvidenc_chroma_opt)
 	fp->enc_frame.general |= XVID_CHROMAOPT;
+#else
+    if (xvidenc_greyscale)
+	fp->enc_frame.general |= XVID_GREYSCALE;
 #endif
 
     switch (outfmt) {



More information about the MPlayer-cvslog mailing list