[MPlayer-cvslog] r26726 - trunk/libmpcodecs/vd_ffmpeg.c

michael subversion at mplayerhq.hu
Sat May 10 21:15:57 CEST 2008


Author: michael
Date: Sat May 10 21:15:57 2008
New Revision: 26726

Log:
Reformat very ugly code.


Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	(original)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sat May 10 21:15:57 2008
@@ -114,22 +114,15 @@ const m_option_t lavc_decode_opts_conf[]
 };
 
 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



More information about the MPlayer-cvslog mailing list