You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avdevice/caca: small trivial macros adjustments
This commit is contained in:
committed by
Clément Bœsch
parent
79f0f1a80b
commit
2c364ef82d
@@ -150,13 +150,15 @@ static int caca_write_header(AVFormatContext *s)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CHECK_DITHER_OPT(opt) \
|
#define CHECK_DITHER_OPT(opt) do { \
|
||||||
if (caca_set_dither_##opt(c->dither, c->opt) < 0) { \
|
if (caca_set_dither_##opt(c->dither, c->opt) < 0) { \
|
||||||
ret = AVERROR(errno); \
|
ret = AVERROR(errno); \
|
||||||
av_log(s, AV_LOG_ERROR, "Failed to set value '%s' for option '%s'\n", \
|
av_log(s, AV_LOG_ERROR, "Failed to set value '%s' for option '%s'\n", \
|
||||||
c->opt, #opt); \
|
c->opt, #opt); \
|
||||||
goto fail; \
|
goto fail; \
|
||||||
}
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
CHECK_DITHER_OPT(algorithm);
|
CHECK_DITHER_OPT(algorithm);
|
||||||
CHECK_DITHER_OPT(antialias);
|
CHECK_DITHER_OPT(antialias);
|
||||||
CHECK_DITHER_OPT(charset);
|
CHECK_DITHER_OPT(charset);
|
||||||
|
Reference in New Issue
Block a user