Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
1b416311
Commit
1b416311
authored
Apr 17, 2024
by
Zhao Zhili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fftools: Fix implicit-const-int-float-conversion warning
Signed-off-by:
Zhao Zhili
<
zhilizhao@tencent.com
>
parent
66161166
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cmdutils.c
fftools/cmdutils.c
+1
-1
ffmpeg_opt.c
fftools/ffmpeg_opt.c
+1
-1
No files found.
fftools/cmdutils.c
View file @
1b416311
...
...
@@ -311,7 +311,7 @@ static int write_option(void *optctx, const OptionDef *po, const char *opt,
*
(
int
*
)
dst
=
num
;
}
else
if
(
po
->
type
==
OPT_TYPE_INT64
)
{
ret
=
parse_number
(
opt
,
arg
,
OPT_TYPE_INT64
,
INT64_MIN
,
INT64_MAX
,
&
num
);
ret
=
parse_number
(
opt
,
arg
,
OPT_TYPE_INT64
,
INT64_MIN
,
(
double
)
INT64_MAX
,
&
num
);
if
(
ret
<
0
)
goto
finish
;
...
...
fftools/ffmpeg_opt.c
View file @
1b416311
...
...
@@ -317,7 +317,7 @@ static int opt_filter_threads(void *optctx, const char *opt, const char *arg)
static
int
opt_abort_on
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
static
const
AVOption
opts
[]
=
{
{
"abort_on"
,
NULL
,
0
,
AV_OPT_TYPE_FLAGS
,
{
.
i64
=
0
},
INT64_MIN
,
INT64_MAX
,
.
unit
=
"flags"
},
{
"abort_on"
,
NULL
,
0
,
AV_OPT_TYPE_FLAGS
,
{
.
i64
=
0
},
INT64_MIN
,
(
double
)
INT64_MAX
,
.
unit
=
"flags"
},
{
"empty_output"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
ABORT_ON_FLAG_EMPTY_OUTPUT
},
.
unit
=
"flags"
},
{
"empty_output_stream"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM
},
.
unit
=
"flags"
},
{
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