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
f4946472
Commit
f4946472
authored
Dec 08, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/opt: change the way ranges are printed
parent
f2c49da9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
opt.c
libavutil/opt.c
+8
-7
No files found.
libavutil/opt.c
View file @
f4946472
...
...
@@ -750,7 +750,7 @@ static void log_value(void *av_log_obj, int level, double d)
}
else
if
(
d
==
FLT_MIN
)
{
av_log
(
av_log_obj
,
level
,
"FLT_MIN"
);
}
else
{
av_log
(
av_log_obj
,
level
,
"%
7.2
g"
,
d
);
av_log
(
av_log_obj
,
level
,
"%g"
,
d
);
}
}
...
...
@@ -826,6 +826,9 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit,
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%c"
,
(
opt
->
flags
&
AV_OPT_FLAG_AUDIO_PARAM
)
?
'A'
:
'.'
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%c"
,
(
opt
->
flags
&
AV_OPT_FLAG_SUBTITLE_PARAM
)
?
'S'
:
'.'
);
if
(
opt
->
help
)
av_log
(
av_log_obj
,
AV_LOG_INFO
,
" %s"
,
opt
->
help
);
if
(
av_opt_query_ranges
(
&
r
,
obj
,
opt
->
name
,
AV_OPT_SEARCH_FAKE_OBJ
)
>=
0
)
{
switch
(
opt
->
type
)
{
case
AV_OPT_TYPE_INT
:
...
...
@@ -833,20 +836,18 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit,
case
AV_OPT_TYPE_DOUBLE
:
case
AV_OPT_TYPE_FLOAT
:
case
AV_OPT_TYPE_RATIONAL
:
for
(
i
=
0
;
i
<
r
->
nb_ranges
;
i
++
)
{
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"
[
"
);
for
(
i
=
0
;
i
<
r
->
nb_ranges
;
i
++
)
{
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"
(from
"
);
log_value
(
av_log_obj
,
AV_LOG_INFO
,
r
->
range
[
i
]
->
value_min
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"
,
"
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"
to
"
);
log_value
(
av_log_obj
,
AV_LOG_INFO
,
r
->
range
[
i
]
->
value_max
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"
]
"
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"
)
"
);
}
break
;
}
av_opt_freep_ranges
(
&
r
);
}
if
(
opt
->
help
)
av_log
(
av_log_obj
,
AV_LOG_INFO
,
" %s"
,
opt
->
help
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"
\n
"
);
if
(
opt
->
unit
&&
opt
->
type
!=
AV_OPT_TYPE_CONST
)
{
opt_list
(
obj
,
av_log_obj
,
opt
->
unit
,
req_flags
,
rej_flags
);
...
...
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