changeset 16615:aede77b9e276

code before decleration, gcc2.95 fix patch by Jan Knutar (jknutar SIGH nic BOOM fi)
author ods15
date Wed, 28 Sep 2005 17:25:21 +0000
parents 3e63ab4120b2
children d9b74d27974d
files libmpcodecs/ve_xvid4.c
diffstat 1 files changed, 10 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_xvid4.c	Wed Sep 28 15:43:24 2005 +0000
+++ b/libmpcodecs/ve_xvid4.c	Wed Sep 28 17:25:21 2005 +0000
@@ -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