OSDN Git Service

applehttp: Change the variable for stream position in seconds into int64_t
authorMartin Storsjö <martin@martin.st>
Mon, 21 Mar 2011 10:20:18 +0000 (12:20 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 21 Mar 2011 19:16:53 +0000 (20:16 +0100)
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>
libavformat/applehttp.c

index af67b28..56fb795 100644 (file)
@@ -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)