Commit 72ad0d56 authored by Clément Bœsch's avatar Clément Bœsch

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

parent 9fa3b5b8
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment