[Mplayer-cvslog] CVS: main/libmpcodecs ve_xvid.c,1.3,1.4

Rémi Guyomarch CVS rguyom at mplayerhq.hu
Sun Nov 3 16:43:21 CET 2002


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

Modified Files:
	ve_xvid.c 
Log Message:

Workaround XViD initialization bug.



Index: ve_xvid.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_xvid.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ve_xvid.c	3 Nov 2002 12:43:30 -0000	1.3
+++ ve_xvid.c	3 Nov 2002 15:43:16 -0000	1.4
@@ -136,7 +136,10 @@
     enc_param.rc_buffer = xvidenc_rc_buffer;
     enc_param.min_quantizer = xvidenc_min_quantizer;
     enc_param.max_quantizer = xvidenc_max_quantizer;
-    enc_param.max_key_interval = xvidenc_max_key_interval;
+    if( xvidenc_max_key_interval > 0 )
+	enc_param.max_key_interval = xvidenc_max_key_interval;
+    else
+	enc_param.max_key_interval = 10 * enc_param.fbase / enc_param.fincr;
     switch (xvid_encore(NULL, XVID_ENC_CREATE, &enc_param, NULL)) {
     case XVID_ERR_FAIL:
 	mp_msg(MSGT_MENCODER,MSGL_ERR, "xvid: encoder creation failed\n");




More information about the MPlayer-cvslog mailing list