Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
2c364ef8
Commit
2c364ef8
authored
Sep 11, 2015
by
Clément Bœsch
Committed by
Clément Bœsch
Sep 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/caca: small trivial macros adjustments
parent
79f0f1a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
caca.c
libavdevice/caca.c
+10
-8
No files found.
libavdevice/caca.c
View file @
2c364ef8
...
@@ -73,7 +73,7 @@ static void list_drivers(CACAContext *c)
...
@@ -73,7 +73,7 @@ static void list_drivers(CACAContext *c)
}
}
#define DEFINE_LIST_DITHER(thing, thing_str) \
#define DEFINE_LIST_DITHER(thing, thing_str) \
static void list_dither_## thing(CACAContext *c) \
static void list_dither_## thing(CACAContext *c)
\
{ \
{ \
const char *const *thing = caca_get_dither_## thing ##_list(c->dither); \
const char *const *thing = caca_get_dither_## thing ##_list(c->dither); \
int i; \
int i; \
...
@@ -150,13 +150,15 @@ static int caca_write_header(AVFormatContext *s)
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment