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
fd84b6fd
Commit
fd84b6fd
authored
Jul 25, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/opt: show default values for AV_OPT_TYPE_PIXEL_FMT and AV_OPT_TYPE_SAMPLE_FMT too
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4a60df2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
opt.c
libavutil/opt.c
+6
-0
No files found.
libavutil/opt.c
View file @
fd84b6fd
...
...
@@ -961,6 +961,12 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit,
AVRational
q
=
av_d2q
(
opt
->
default_val
.
dbl
,
INT_MAX
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%d/%d"
,
q
.
num
,
q
.
den
);
}
break
;
case
AV_OPT_TYPE_PIXEL_FMT
:
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%s"
,
av_x_if_null
(
av_get_pix_fmt_name
(
opt
->
default_val
.
i64
),
"none"
));
break
;
case
AV_OPT_TYPE_SAMPLE_FMT
:
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%s"
,
av_x_if_null
(
av_get_sample_fmt_name
(
opt
->
default_val
.
i64
),
"none"
));
break
;
case
AV_OPT_TYPE_COLOR
:
case
AV_OPT_TYPE_IMAGE_SIZE
:
case
AV_OPT_TYPE_STRING
:
...
...
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