Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9f0b0db0
Commit
9f0b0db0
authored
Jan 26, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/aformat: use do..while(0) form for macro.
This avoids some empty statements.
parent
d055c328
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
af_aformat.c
libavfilter/af_aformat.c
+3
-2
No files found.
libavfilter/af_aformat.c
View file @
9f0b0db0
...
...
@@ -42,7 +42,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
if
(
!
args
)
goto
arg_fail
;
#define ADD_FORMATS(all_formats, fmt_name, fmt_type, fmts_list)
\
#define ADD_FORMATS(all_formats, fmt_name, fmt_type, fmts_list)
do {
\
fmts_str = av_get_token(&args, ":"); \
if (!fmts_str || !*fmts_str) \
goto arg_fail; \
...
...
@@ -61,7 +61,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
} \
av_freep(&fmts_str); \
if (*args) \
args++;
args++; \
} while (0)
ADD_FORMATS
(
avfilter_make_all_formats
(
AVMEDIA_TYPE_AUDIO
),
sample_format
,
int
,
formats
);
ADD_FORMATS
(
avfilter_make_all_channel_layouts
(),
channel_layout
,
int64_t
,
chlayouts
);
...
...
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