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
306ff409
Commit
306ff409
authored
Sep 11, 2015
by
Clément Bœsch
Committed by
Clément Bœsch
Sep 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: use AV_OPT_TYPE_BOOL for writers options
parent
2c364ef8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
ffprobe.c
ffprobe.c
+22
-22
No files found.
ffprobe.c
View file @
306ff409
...
@@ -807,10 +807,10 @@ typedef struct DefaultContext {
...
@@ -807,10 +807,10 @@ typedef struct DefaultContext {
#define OFFSET(x) offsetof(DefaultContext, x)
#define OFFSET(x) offsetof(DefaultContext, x)
static
const
AVOption
default_options
[]
=
{
static
const
AVOption
default_options
[]
=
{
{
"noprint_wrappers"
,
"do not print headers and footers"
,
OFFSET
(
noprint_wrappers
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"noprint_wrappers"
,
"do not print headers and footers"
,
OFFSET
(
noprint_wrappers
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"nw"
,
"do not print headers and footers"
,
OFFSET
(
noprint_wrappers
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"nw"
,
"do not print headers and footers"
,
OFFSET
(
noprint_wrappers
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"nokey"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"nokey"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"nk"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"nk"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
NULL
},
{
NULL
},
};
};
...
@@ -963,12 +963,12 @@ typedef struct CompactContext {
...
@@ -963,12 +963,12 @@ typedef struct CompactContext {
static
const
AVOption
compact_options
[]
=
{
static
const
AVOption
compact_options
[]
=
{
{
"item_sep"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"|"
},
CHAR_MIN
,
CHAR_MAX
},
{
"item_sep"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"|"
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"|"
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"|"
},
CHAR_MIN
,
CHAR_MAX
},
{
"nokey"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"nokey"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"nk"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"nk"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"escape"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"c"
},
CHAR_MIN
,
CHAR_MAX
},
{
"escape"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"c"
},
CHAR_MIN
,
CHAR_MAX
},
{
"e"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"c"
},
CHAR_MIN
,
CHAR_MAX
},
{
"e"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"c"
},
CHAR_MIN
,
CHAR_MAX
},
{
"print_section"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"print_section"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
"p"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"p"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
NULL
},
{
NULL
},
};
};
...
@@ -1079,12 +1079,12 @@ static const Writer compact_writer = {
...
@@ -1079,12 +1079,12 @@ static const Writer compact_writer = {
static
const
AVOption
csv_options
[]
=
{
static
const
AVOption
csv_options
[]
=
{
{
"item_sep"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
","
},
CHAR_MIN
,
CHAR_MAX
},
{
"item_sep"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
","
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
","
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set item separator"
,
OFFSET
(
item_sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
","
},
CHAR_MIN
,
CHAR_MAX
},
{
"nokey"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"nokey"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
"nk"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"nk"
,
"force no key printing"
,
OFFSET
(
nokey
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
"escape"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"csv"
},
CHAR_MIN
,
CHAR_MAX
},
{
"escape"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"csv"
},
CHAR_MIN
,
CHAR_MAX
},
{
"e"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"csv"
},
CHAR_MIN
,
CHAR_MAX
},
{
"e"
,
"set escape mode"
,
OFFSET
(
escape_mode_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"csv"
},
CHAR_MIN
,
CHAR_MAX
},
{
"print_section"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"print_section"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
"p"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"p"
,
"print section name"
,
OFFSET
(
print_section
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
NULL
},
{
NULL
},
};
};
...
@@ -1117,8 +1117,8 @@ typedef struct FlatContext {
...
@@ -1117,8 +1117,8 @@ typedef struct FlatContext {
static
const
AVOption
flat_options
[]
=
{
static
const
AVOption
flat_options
[]
=
{
{
"sep_char"
,
"set separator"
,
OFFSET
(
sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"."
},
CHAR_MIN
,
CHAR_MAX
},
{
"sep_char"
,
"set separator"
,
OFFSET
(
sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"."
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set separator"
,
OFFSET
(
sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"."
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set separator"
,
OFFSET
(
sep_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
"."
},
CHAR_MIN
,
CHAR_MAX
},
{
"hierarchical"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"hierarchical"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
"h"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
1
},
{
"h"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
1
},
0
,
1
},
{
NULL
},
{
NULL
},
};
};
...
@@ -1237,8 +1237,8 @@ typedef struct INIContext {
...
@@ -1237,8 +1237,8 @@ typedef struct INIContext {
#define OFFSET(x) offsetof(INIContext, x)
#define OFFSET(x) offsetof(INIContext, x)
static
const
AVOption
ini_options
[]
=
{
static
const
AVOption
ini_options
[]
=
{
{
"hierarchical"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
},
{
"hierarchical"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
},
{
"h"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
1
},
{
"h"
,
"specify if the section specification should be hierarchical"
,
OFFSET
(
hierarchical
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
1
},
0
,
1
},
{
NULL
},
{
NULL
},
};
};
...
@@ -1343,8 +1343,8 @@ typedef struct JSONContext {
...
@@ -1343,8 +1343,8 @@ typedef struct JSONContext {
#define OFFSET(x) offsetof(JSONContext, x)
#define OFFSET(x) offsetof(JSONContext, x)
static
const
AVOption
json_options
[]
=
{
static
const
AVOption
json_options
[]
=
{
{
"compact"
,
"enable compact output"
,
OFFSET
(
compact
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"compact"
,
"enable compact output"
,
OFFSET
(
compact
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"c"
,
"enable compact output"
,
OFFSET
(
compact
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"c"
,
"enable compact output"
,
OFFSET
(
compact
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
NULL
}
{
NULL
}
};
};
...
@@ -1506,10 +1506,10 @@ typedef struct XMLContext {
...
@@ -1506,10 +1506,10 @@ typedef struct XMLContext {
#define OFFSET(x) offsetof(XMLContext, x)
#define OFFSET(x) offsetof(XMLContext, x)
static
const
AVOption
xml_options
[]
=
{
static
const
AVOption
xml_options
[]
=
{
{
"fully_qualified"
,
"specify if the output should be fully qualified"
,
OFFSET
(
fully_qualified
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"fully_qualified"
,
"specify if the output should be fully qualified"
,
OFFSET
(
fully_qualified
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"q"
,
"specify if the output should be fully qualified"
,
OFFSET
(
fully_qualified
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"q"
,
"specify if the output should be fully qualified"
,
OFFSET
(
fully_qualified
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"xsd_strict"
,
"ensure that the output is XSD compliant"
,
OFFSET
(
xsd_strict
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"xsd_strict"
,
"ensure that the output is XSD compliant"
,
OFFSET
(
xsd_strict
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
"x"
,
"ensure that the output is XSD compliant"
,
OFFSET
(
xsd_strict
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
},
{
"x"
,
"ensure that the output is XSD compliant"
,
OFFSET
(
xsd_strict
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
},
{
NULL
},
{
NULL
},
};
};
...
...
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