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
337c68d0
Commit
337c68d0
authored
Mar 26, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/fourcc2pixfmt: fix usages of av_get_codec_tag_string()
parent
cd4d6cba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
fourcc2pixfmt.c
tools/fourcc2pixfmt.c
+7
-14
No files found.
tools/fourcc2pixfmt.c
View file @
337c68d0
...
...
@@ -51,13 +51,9 @@ static void print_pix_fmt_fourccs(enum AVPixelFormat pix_fmt, const PixelFormatT
{
int
i
;
for
(
i
=
0
;
pix_fmt_tags
[
i
].
pix_fmt
!=
AV_PIX_FMT_NONE
;
i
++
)
{
if
(
pix_fmt_tags
[
i
].
pix_fmt
==
pix_fmt
)
{
char
buf
[
32
];
av_get_codec_tag_string
(
buf
,
sizeof
(
buf
),
pix_fmt_tags
[
i
].
fourcc
);
printf
(
"%s%c"
,
buf
,
sep
);
}
}
for
(
i
=
0
;
pix_fmt_tags
[
i
].
pix_fmt
!=
AV_PIX_FMT_NONE
;
i
++
)
if
(
pix_fmt_tags
[
i
].
pix_fmt
==
pix_fmt
)
printf
(
"%s%c"
,
av_fourcc2str
(
pix_fmt_tags
[
i
].
fourcc
),
sep
);
}
int
main
(
int
argc
,
char
**
argv
)
...
...
@@ -92,13 +88,10 @@ int main(int argc, char **argv)
}
}
if
(
list_fourcc_pix_fmt
)
{
for
(
i
=
0
;
pix_fmt_tags
[
i
].
pix_fmt
!=
AV_PIX_FMT_NONE
;
i
++
)
{
char
buf
[
32
];
av_get_codec_tag_string
(
buf
,
sizeof
(
buf
),
pix_fmt_tags
[
i
].
fourcc
);
printf
(
"%s: %s
\n
"
,
buf
,
av_get_pix_fmt_name
(
pix_fmt_tags
[
i
].
pix_fmt
));
}
}
if
(
list_fourcc_pix_fmt
)
for
(
i
=
0
;
pix_fmt_tags
[
i
].
pix_fmt
!=
AV_PIX_FMT_NONE
;
i
++
)
printf
(
"%s: %s
\n
"
,
av_fourcc2str
(
pix_fmt_tags
[
i
].
fourcc
),
av_get_pix_fmt_name
(
pix_fmt_tags
[
i
].
pix_fmt
));
if
(
list_pix_fmt_fourccs
)
{
for
(
i
=
0
;
av_pix_fmt_desc_get
(
i
);
i
++
)
{
...
...
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