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
d4ab1292
Commit
d4ab1292
authored
Jul 12, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_filter: do not pick evil path for trim filters
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
9087dcbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ffmpeg_filter.c
ffmpeg_filter.c
+2
-2
No files found.
ffmpeg_filter.c
View file @
d4ab1292
...
...
@@ -302,11 +302,11 @@ static int insert_trim(int64_t start_time, int64_t duration,
return
AVERROR
(
ENOMEM
);
if
(
duration
!=
INT64_MAX
)
{
ret
=
av_opt_set_
double
(
ctx
,
"duration"
,
(
double
)
duration
/
1e6
,
ret
=
av_opt_set_
int
(
ctx
,
"durationi"
,
duration
,
AV_OPT_SEARCH_CHILDREN
);
}
if
(
ret
>=
0
&&
start_time
!=
AV_NOPTS_VALUE
)
{
ret
=
av_opt_set_
double
(
ctx
,
"start"
,
(
double
)
start_time
/
1e6
,
ret
=
av_opt_set_
int
(
ctx
,
"starti"
,
start_time
,
AV_OPT_SEARCH_CHILDREN
);
}
if
(
ret
<
0
)
{
...
...
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