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
26d4f26b
Commit
26d4f26b
authored
Apr 30, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPT_INT
Originally committed as revision 3092 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
242f5b0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
cmdutils.c
cmdutils.c
+2
-0
cmdutils.h
cmdutils.h
+1
-0
No files found.
cmdutils.c
View file @
26d4f26b
...
...
@@ -81,6 +81,8 @@ void parse_options(int argc, char **argv, const OptionDef *options)
*
po
->
u
.
str_arg
=
str
;
}
else
if
(
po
->
flags
&
OPT_BOOL
)
{
*
po
->
u
.
int_arg
=
1
;
}
else
if
(
po
->
flags
&
OPT_INT
)
{
*
po
->
u
.
int_arg
=
atoi
(
arg
);
}
else
{
po
->
u
.
func_arg
(
arg
);
}
...
...
cmdutils.h
View file @
26d4f26b
...
...
@@ -11,6 +11,7 @@ typedef struct {
#define OPT_VIDEO 0x0010
#define OPT_AUDIO 0x0020
#define OPT_GRAB 0x0040
#define OPT_INT 0x0080
union
{
void
(
*
func_arg
)(
const
char
*
);
int
*
int_arg
;
...
...
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