Commit 2c364ef8 authored by Clément Bœsch's avatar Clément Bœsch Committed by Clément Bœsch

avdevice/caca: small trivial macros adjustments

parent 79f0f1a8
......@@ -150,13 +150,15 @@ static int caca_write_header(AVFormatContext *s)
goto fail;
}
#define CHECK_DITHER_OPT(opt) \
#define CHECK_DITHER_OPT(opt) do { \
if (caca_set_dither_##opt(c->dither, c->opt) < 0) { \
ret = AVERROR(errno); \
av_log(s, AV_LOG_ERROR, "Failed to set value '%s' for option '%s'\n", \
c->opt, #opt); \
goto fail; \
}
} \
} while (0)
CHECK_DITHER_OPT(algorithm);
CHECK_DITHER_OPT(antialias);
CHECK_DITHER_OPT(charset);
......
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