[FFmpeg-cvslog] lavfi/hue: make do while (0) form meaningful.

Clément Bœsch git at videolan.org
Fri Apr 12 20:11:42 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Apr 12 20:10:58 2013 +0200| [72ad0d56a135682681ccf41943b1146496d7602c] | committer: Clément Bœsch

lavfi/hue: make do while (0) form meaningful.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72ad0d56a135682681ccf41943b1146496d7602c
---

 libavfilter/vf_hue.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index af3a2ac..038f7f7 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -302,10 +302,10 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
 {
     HueContext *hue = ctx->priv;
 
-#define SET_CMD(expr, option)                                          \
-    if (!strcmp(cmd, option)) do {                                     \
-            return set_expr(&hue->expr##_pexpr, args, cmd, ctx);       \
-    } while (0)
+#define SET_CMD(expr, option) do {                                 \
+    if (!strcmp(cmd, option))                                      \
+        return set_expr(&hue->expr##_pexpr, args, cmd, ctx);       \
+} while (0)
     SET_CMD(hue_deg,    "h");
     SET_CMD(hue,        "H");
     SET_CMD(saturation, "s");



More information about the ffmpeg-cvslog mailing list