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
ffdf9a1f
Commit
ffdf9a1f
authored
Mar 30, 2007
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add OPT_INT64 option
Originally committed as revision 8554 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a4072c45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
cmdutils.c
cmdutils.c
+2
-0
cmdutils.h
cmdutils.h
+2
-0
No files found.
cmdutils.c
View file @
ffdf9a1f
...
...
@@ -98,6 +98,8 @@ unknown_opt:
*
po
->
u
.
int_arg
=
1
;
}
else
if
(
po
->
flags
&
OPT_INT
)
{
*
po
->
u
.
int_arg
=
atoi
(
arg
);
}
else
if
(
po
->
flags
&
OPT_INT64
)
{
*
po
->
u
.
int64_arg
=
atoll
(
arg
);
}
else
if
(
po
->
flags
&
OPT_FLOAT
)
{
*
po
->
u
.
float_arg
=
atof
(
arg
);
}
else
if
(
po
->
flags
&
OPT_FUNC2
)
{
...
...
cmdutils.h
View file @
ffdf9a1f
...
...
@@ -36,12 +36,14 @@ typedef struct {
#define OPT_FLOAT 0x0100
#define OPT_SUBTITLE 0x0200
#define OPT_FUNC2 0x0400
#define OPT_INT64 0x0800
union
{
void
(
*
func_arg
)(
const
char
*
);
//FIXME passing error code as int return would be nicer then exit() in the func
int
*
int_arg
;
char
**
str_arg
;
float
*
float_arg
;
int
(
*
func2_arg
)(
const
char
*
,
const
char
*
);
int64_t
*
int64_arg
;
}
u
;
const
char
*
help
;
const
char
*
argname
;
...
...
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