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
4ac88ba5
Commit
4ac88ba5
authored
Jun 22, 2018
by
Gyan Doshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fftools/ffmpeg: check sseof value and clash with ss
Prioritize -ss
parent
52e8a0d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
ffmpeg_opt.c
fftools/ffmpeg_opt.c
+14
-1
No files found.
fftools/ffmpeg_opt.c
View file @
4ac88ba5
...
...
@@ -1103,9 +1103,22 @@ static int open_input_file(OptionsContext *o, const char *filename)
}
}
if
(
o
->
start_time
!=
AV_NOPTS_VALUE
&&
o
->
start_time_eof
!=
AV_NOPTS_VALUE
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"Cannot use -ss and -sseof both, using -ss for %s
\n
"
,
filename
);
o
->
start_time_eof
=
AV_NOPTS_VALUE
;
}
if
(
o
->
start_time_eof
!=
AV_NOPTS_VALUE
)
{
if
(
ic
->
duration
>
0
)
{
if
(
o
->
start_time_eof
>=
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"-sseof value must be negative; aborting
\n
"
);
exit_program
(
1
);
}
if
(
ic
->
duration
>
0
)
{
o
->
start_time
=
o
->
start_time_eof
+
ic
->
duration
;
if
(
o
->
start_time
<
0
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"-sseof value seeks to before start of file %s; ignored
\n
"
,
filename
);
o
->
start_time
=
AV_NOPTS_VALUE
;
}
}
else
av_log
(
NULL
,
AV_LOG_WARNING
,
"Cannot use -sseof, duration of %s not known
\n
"
,
filename
);
}
...
...
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