From 72ad0d56a135682681ccf41943b1146496d7602c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 12 Apr 2013 20:10:58 +0200 Subject: [PATCH] lavfi/hue: make do while (0) form meaningful. --- 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 af3a2ac18c..038f7f7af7 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");