# HG changeset patch # User michael # Date 1210446957 0 # Node ID 75ec8833185c91faa545abb45292f3531a0b3c02 # Parent 64bb979316d3a6102bc50eeb32a9c23a7c142d9e Reformat very ugly code. diff -r 64bb979316d3 -r 75ec8833185c libmpcodecs/vd_ffmpeg.c --- 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