aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-10 19:15:57 +0000
committerGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-10 19:15:57 +0000
commit16aa40b6f874b19869ebead46881876e9c0a5c1e (patch)
treeef9879e432ddf3f3bf6b24fee766ed9c5250f658 /libmpcodecs
parentea56b3061c0fb0dace82e250ee79008de2a57222 (diff)
Reformat very ugly code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26726 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 8f5cb7ca08..aac7e5e4ef 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -114,22 +114,15 @@ const m_option_t lavc_decode_opts_conf[]={
};
static enum AVDiscard str2AVDiscard(char *str) {
- if (!str)
+ if (!str) return AVDISCARD_DEFAULT;
+ if (strcasecmp(str, "none" ) == 0) return AVDISCARD_NONE;
+ if (strcasecmp(str, "default") == 0) return AVDISCARD_DEFAULT;
+ if (strcasecmp(str, "nonref" ) == 0) return AVDISCARD_NONREF;
+ if (strcasecmp(str, "bidir" ) == 0) return AVDISCARD_BIDIR;
+ if (strcasecmp(str, "nonkey" ) == 0) return AVDISCARD_NONKEY;
+ if (strcasecmp(str, "all" ) == 0) return AVDISCARD_ALL;
+ mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Unknown discard value %s\n", str);
return AVDISCARD_DEFAULT;
- if (strcasecmp(str, "none") == 0)
- return AVDISCARD_NONE;
- if (strcasecmp(str, "default") == 0)
- return AVDISCARD_DEFAULT;
- if (strcasecmp(str, "nonref") == 0)
- return AVDISCARD_NONREF;
- if (strcasecmp(str, "bidir") == 0)
- return AVDISCARD_BIDIR;
- if (strcasecmp(str, "nonkey") == 0)
- return AVDISCARD_NONKEY;
- if (strcasecmp(str, "all") == 0)
- return AVDISCARD_ALL;
- mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Unknown discard value %s\n", str);
- return AVDISCARD_DEFAULT;
}
// to set/get/query special features/parameters