1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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