changeset 26694:75ec8833185c

Reformat very ugly code.
author michael
date Sat, 10 May 2008 19:15:57 +0000
parents 64bb979316d3
children 1af41774481b
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 8 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sat May 10 19:07:26 2008 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sat May 10 19:15:57 2008 +0000
@@ -114,22 +114,15 @@
 };
 
 static enum AVDiscard str2AVDiscard(char *str) {
-  if (!str)
-    return AVDISCARD_DEFAULT;
-  if (strcasecmp(str, "none") == 0)
-    return AVDISCARD_NONE;
-  if (strcasecmp(str, "default") == 0)
+    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, "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