summaryrefslogtreecommitdiff
path: root/libavformat/applehttp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-03-21 12:20:18 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-03-21 20:16:53 +0100
commitdc8b73c0690fbefaf8147653758919875361e8d8 (patch)
tree755080f7e1e077b8cd24be9f18fd226fc062222f /libavformat/applehttp.c
parent648c79624fa70414dfb644fcb84b9de15e6568b0 (diff)
applehttp: Change the variable for stream position in seconds into int64_t
A similar variable for the total stream duration was changed to int64_t in b79c3df08807c96a945, due to overflows in some odd streams. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/applehttp.c')
-rw-r--r--libavformat/applehttp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c
index af67b28f2d..56fb795ecf 100644
--- a/libavformat/applehttp.c
+++ b/libavformat/applehttp.c
@@ -496,7 +496,8 @@ static int applehttp_read_seek(AVFormatContext *s, int stream_index,
int64_t timestamp, int flags)
{
AppleHTTPContext *c = s->priv_data;
- int pos = 0, i;
+ int64_t pos = 0;
+ int i;
struct variant *var = c->variants[0];
if ((flags & AVSEEK_FLAG_BYTE) || !c->finished)