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
c109dfc1
Commit
c109dfc1
authored
Oct 08, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/opt: print runtime flag too
parent
a918b833
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
25 deletions
+26
-25
opt.c
libavutil/opt.c
+1
-0
opt
tests/ref/fate/opt
+25
-25
No files found.
libavutil/opt.c
View file @
c109dfc1
...
...
@@ -1217,6 +1217,7 @@ 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_EXPORT
)
?
'X'
:
'.'
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%c"
,
(
opt
->
flags
&
AV_OPT_FLAG_READONLY
)
?
'R'
:
'.'
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%c"
,
(
opt
->
flags
&
AV_OPT_FLAG_BSF_PARAM
)
?
'B'
:
'.'
);
av_log
(
av_log_obj
,
AV_LOG_INFO
,
"%c"
,
(
opt
->
flags
&
AV_OPT_FLAG_RUNTIME_PARAM
)
?
'T'
:
'.'
);
if
(
opt
->
help
)
av_log
(
av_log_obj
,
AV_LOG_INFO
,
" %s"
,
opt
->
help
);
...
...
tests/ref/fate/opt
View file @
c109dfc1
...
...
@@ -18,31 +18,31 @@ num64=1
flt=0.333333
dbl=0.333333
TestContext AVOptions:
-num <int> E........ set num (from 0 to 100) (default 0)
-toggle <int> E........ set toggle (from 0 to 1) (default 1)
-rational <rational> E........ set rational (from 0 to 10) (default 1/1)
-string <string> E........ set string (default "default")
-escape <string> E........ set escape str (default "\=,")
-flags <flags> E........ set flags (default cool)
cool E........ set cool flag
lame E........ set lame flag
mu E........ set mu flag
-size <image_size> E........ set size (default "200x300")
-pix_fmt <pix_fmt> E........ set pixfmt (default 0bgr)
-sample_fmt <sample_fmt> E........ set samplefmt (default s16)
-video_rate <video_rate> E........ set videorate (default "25")
-duration <duration> E........ set duration (default 0.001)
-color <color> E........ set color (default "pink")
-cl <channel_layout> E........ set channel layout (default 0x137)
-bin <binary> E........ set binary value
-bin1 <binary> E........ set binary value
-bin2 <binary> E........ set binary value
-num64 <int64> E........ set num 64bit (from 0 to 100) (default 1)
-flt <float> E........ set float (from 0 to 100) (default 0.333333)
-dbl <double> E........ set double (from 0 to 100) (default 0.333333)
-bool1 <boolean> E........ set boolean value (default auto)
-bool2 <boolean> E........ set boolean value (default true)
-bool3 <boolean> E........ set boolean value (default false)
-num <int> E........
.
set num (from 0 to 100) (default 0)
-toggle <int> E........
.
set toggle (from 0 to 1) (default 1)
-rational <rational> E........
.
set rational (from 0 to 10) (default 1/1)
-string <string> E........
.
set string (default "default")
-escape <string> E........
.
set escape str (default "\=,")
-flags <flags> E........
.
set flags (default cool)
cool E........
.
set cool flag
lame E........
.
set lame flag
mu E........
.
set mu flag
-size <image_size> E........
.
set size (default "200x300")
-pix_fmt <pix_fmt> E........
.
set pixfmt (default 0bgr)
-sample_fmt <sample_fmt> E........
.
set samplefmt (default s16)
-video_rate <video_rate> E........
.
set videorate (default "25")
-duration <duration> E........
.
set duration (default 0.001)
-color <color> E........
.
set color (default "pink")
-cl <channel_layout> E........
.
set channel layout (default 0x137)
-bin <binary> E........
.
set binary value
-bin1 <binary> E........
.
set binary value
-bin2 <binary> E........
.
set binary value
-num64 <int64> E........
.
set num 64bit (from 0 to 100) (default 1)
-flt <float> E........
.
set float (from 0 to 100) (default 0.333333)
-dbl <double> E........
.
set double (from 0 to 100) (default 0.333333)
-bool1 <boolean> E........
.
set boolean value (default auto)
-bool2 <boolean> E........
.
set boolean value (default true)
-bool3 <boolean> E........
.
set boolean value (default false)
Testing av_opt_is_set_to_default()
name: num default:1 error:
...
...
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