Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8470e6c9
Commit
8470e6c9
authored
Sep 11, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/avformat_seek_file: fix harmless integer overflow
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
386d60f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
utils.c
libavformat/utils.c
+1
-1
No files found.
libavformat/utils.c
View file @
8470e6c9
...
@@ -2020,7 +2020,7 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int
...
@@ -2020,7 +2020,7 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int
//Fallback to old API if new is not implemented but old is
//Fallback to old API if new is not implemented but old is
//Note the old has somewhat different semantics
//Note the old has somewhat different semantics
if
(
s
->
iformat
->
read_seek
||
1
)
{
if
(
s
->
iformat
->
read_seek
||
1
)
{
int
dir
=
(
ts
-
min_ts
>
(
uint64_t
)(
max_ts
-
ts
)
?
AVSEEK_FLAG_BACKWARD
:
0
);
int
dir
=
(
ts
-
(
uint64_t
)
min_ts
>
(
uint64_t
)
max_ts
-
ts
?
AVSEEK_FLAG_BACKWARD
:
0
);
int
ret
=
av_seek_frame
(
s
,
stream_index
,
ts
,
flags
|
dir
);
int
ret
=
av_seek_frame
(
s
,
stream_index
,
ts
,
flags
|
dir
);
if
(
ret
<
0
&&
ts
!=
min_ts
&&
max_ts
!=
ts
)
{
if
(
ret
<
0
&&
ts
!=
min_ts
&&
max_ts
!=
ts
)
{
ret
=
av_seek_frame
(
s
,
stream_index
,
dir
?
max_ts
:
min_ts
,
flags
|
dir
);
ret
=
av_seek_frame
(
s
,
stream_index
,
dir
?
max_ts
:
min_ts
,
flags
|
dir
);
...
...
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