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
b6ea9c87
Commit
b6ea9c87
authored
Sep 28, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: drop SECTION_ENTRY macro
The use of the macro makes to add new optional fields somewhat harder.
parent
23564a4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
+16
-19
ffprobe.c
ffprobe.c
+16
-19
No files found.
ffprobe.c
View file @
b6ea9c87
...
...
@@ -101,26 +101,23 @@ typedef enum {
SECTION_ID_STREAM_TAGS
}
SectionID
;
#define SECTION_ENTRY(id, name, flags) \
[SECTION_ID_##id] = { SECTION_ID_##id, name, flags }
static
const
struct
section
sections
[]
=
{
SECTION_ENTRY
(
ERROR
,
"error"
,
0
)
,
SECTION_ENTRY
(
FORMAT
,
"format"
,
0
)
,
SECTION_ENTRY
(
FORMAT_TAGS
,
"tags"
,
0
)
,
SECTION_ENTRY
(
FRAME
,
"frame"
,
0
)
,
SECTION_ENTRY
(
FRAMES
,
"frames"
,
SECTION_FLAG_IS_ARRAY
)
,
SECTION_ENTRY
(
FRAME_TAGS
,
"tags"
,
0
)
,
SECTION_ENTRY
(
LIBRARY_VERSION
,
"library_version"
,
0
)
,
SECTION_ENTRY
(
LIBRARY_VERSIONS
,
"library_versions"
,
SECTION_FLAG_IS_ARRAY
)
,
SECTION_ENTRY
(
PACKET
,
"packet"
,
0
)
,
SECTION_ENTRY
(
PACKETS
,
"packets"
,
SECTION_FLAG_IS_ARRAY
)
,
SECTION_ENTRY
(
PACKETS_AND_FRAMES
,
"packets_and_frames"
,
SECTION_FLAG_IS_ARRAY
)
,
SECTION_ENTRY
(
PROGRAM_VERSION
,
"program_version"
,
0
)
,
SECTION_ENTRY
(
ROOT
,
"root"
,
SECTION_FLAG_IS_WRAPPER
)
,
SECTION_ENTRY
(
STREAM
,
"stream"
,
0
)
,
SECTION_ENTRY
(
STREAMS
,
"streams"
,
SECTION_FLAG_IS_ARRAY
)
,
SECTION_ENTRY
(
STREAM_TAGS
,
"tags"
,
0
)
,
[
SECTION_ID_ERROR
]
=
{
SECTION_ID_ERROR
,
"error"
}
,
[
SECTION_ID_FORMAT
]
=
{
SECTION_ID_FORMAT
,
"format"
}
,
[
SECTION_ID_FORMAT_TAGS
]
=
{
SECTION_ID_FORMAT_TAGS
,
"tags"
}
,
[
SECTION_ID_FRAME
]
=
{
SECTION_ID_FRAME
,
"frame"
}
,
[
SECTION_ID_FRAMES
]
=
{
SECTION_ID_FRAMES
,
"frames"
,
SECTION_FLAG_IS_ARRAY
}
,
[
SECTION_ID_FRAME_TAGS
]
=
{
SECTION_ID_FRAME_TAGS
,
"tags"
}
,
[
SECTION_ID_LIBRARY_VERSION
]
=
{
SECTION_ID_LIBRARY_VERSION
,
"library_version"
}
,
[
SECTION_ID_LIBRARY_VERSIONS
]
=
{
SECTION_ID_LIBRARY_VERSIONS
,
"library_versions"
,
SECTION_FLAG_IS_ARRAY
}
,
[
SECTION_ID_PACKET
]
=
{
SECTION_ID_PACKET
,
"packet"
}
,
[
SECTION_ID_PACKETS
]
=
{
SECTION_ID_PACKETS
,
"packets"
,
SECTION_FLAG_IS_ARRAY
}
,
[
SECTION_ID_PACKETS_AND_FRAMES
]
=
{
SECTION_ID_PACKETS_AND_FRAMES
,
"packets_and_frames"
,
SECTION_FLAG_IS_ARRAY
}
,
[
SECTION_ID_PROGRAM_VERSION
]
=
{
SECTION_ID_PROGRAM_VERSION
,
"program_version"
}
,
[
SECTION_ID_ROOT
]
=
{
SECTION_ID_ROOT
,
"root"
,
SECTION_FLAG_IS_WRAPPER
}
,
[
SECTION_ID_STREAM
]
=
{
SECTION_ID_STREAM
,
"stream"
}
,
[
SECTION_ID_STREAMS
]
=
{
SECTION_ID_STREAMS
,
"streams"
,
SECTION_FLAG_IS_ARRAY
}
,
[
SECTION_ID_STREAM_TAGS
]
=
{
SECTION_ID_STREAM_TAGS
,
"tags"
}
,
};
static
const
OptionDef
*
options
;
...
...
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