[MPlayer-cvslog] CVS: main/libmpcodecs ve_xvid4.c,1.20,1.21

Oded Shimon CVS syncmail at mplayerhq.hu
Wed Sep 28 19:25:24 CEST 2005


CVS change done by Oded Shimon CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv31335/libmpcodecs

Modified Files:
	ve_xvid4.c 
Log Message:
code before decleration, gcc2.95 fix
patch by Jan Knutar (jknutar SIGH nic BOOM fi)



Index: ve_xvid4.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_xvid4.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- ve_xvid4.c	26 Sep 2005 10:43:34 -0000	1.20
+++ ve_xvid4.c	28 Sep 2005 17:25:21 -0000	1.21
@@ -729,17 +729,6 @@
 	xvid_plugin_2pass2_t *pass2   = &mod->pass2;
 	XVIDRational ar;
 
-	//profile is unrestricted as default
-	profile_t *selected_profile =  profileFromName("unrestricted");
-	if(xvidenc_profile)
-		selected_profile = profileFromName(xvidenc_profile);
-	if(!selected_profile)
-	{
-		mp_msg(MSGT_MENCODER,MSGL_ERR,
-			"xvid:[ERROR] \"%s\" is an invalid profile name\n", xvidenc_profile);
-		return(BAD);
-	}
-
 	const int motion_presets[7] =
 		{
 			0,
@@ -752,6 +741,16 @@
 			XVID_ME_HALFPELREFINE8  | XVID_ME_USESQUARES16
 		};
 
+	//profile is unrestricted as default
+	profile_t *selected_profile =  profileFromName("unrestricted");
+	if(xvidenc_profile)
+		selected_profile = profileFromName(xvidenc_profile);
+	if(!selected_profile)
+	{
+		mp_msg(MSGT_MENCODER,MSGL_ERR,
+			"xvid:[ERROR] \"%s\" is an invalid profile name\n", xvidenc_profile);
+		return(BAD);
+	}
 	
 	/* -------------------------------------------------------------------
 	 * Dispatch all settings having an impact on the "create" structure




More information about the MPlayer-cvslog mailing list