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

This commit is contained in:
Clément Bœsch 2013-04-12 20:10:58 +02:00
parent 9fa3b5b8a8
commit 72ad0d56a1
1 changed files with 4 additions and 4 deletions

View File

@ -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");