summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-28 17:25:21 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-28 17:25:21 +0000
commit11f81c76f9da81ba9001a5c5497ac4ece3944198 (patch)
tree8a0496c98f116bfae99033eb313af4c0d475c867 /libmpcodecs
parentce1fc3dcb4262e56adba6eba949670ded3e27ada (diff)
downloadmpv-11f81c76f9da81ba9001a5c5497ac4ece3944198.tar.bz2
mpv-11f81c76f9da81ba9001a5c5497ac4ece3944198.tar.xz
code before decleration, gcc2.95 fix
patch by Jan Knutar (jknutar SIGH nic BOOM fi) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16616 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_xvid4.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/libmpcodecs/ve_xvid4.c b/libmpcodecs/ve_xvid4.c
index eae0c3c337..a636cdc183 100644
--- a/libmpcodecs/ve_xvid4.c
+++ b/libmpcodecs/ve_xvid4.c
@@ -729,17 +729,6 @@ static int dispatch_settings(xvid_mplayer_module_t *mod)
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 @@ static int dispatch_settings(xvid_mplayer_module_t *mod)
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