Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
b79c3df0
Commit
b79c3df0
authored
Jan 17, 2011
by
John Wimer
Committed by
Martin Storsjö
Jan 17, 2011
Browse files
prevent integer overflow in calculating duration
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
348b8218
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libavformat/applehttp.c
libavformat/applehttp.c
+1
-1
No files found.
libavformat/applehttp.c
View file @
b79c3df0
...
...
@@ -306,7 +306,7 @@ static int applehttp_read_header(AVFormatContext *s, AVFormatParameters *ap)
/* If this isn't a live stream, calculate the total duration of the
* stream. */
if
(
c
->
finished
)
{
int
duration
=
0
;
int
64_t
duration
=
0
;
for
(
i
=
0
;
i
<
c
->
variants
[
0
]
->
n_segments
;
i
++
)
duration
+=
c
->
variants
[
0
]
->
segments
[
i
]
->
duration
;
s
->
duration
=
duration
*
AV_TIME_BASE
;
...
...
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