applehttp: Change the variable for stream position in seconds into int64_t

Message ID 1300702818-56303-1-git-send-email-martin@martin.st
State Committed
Commit dc8b73c0690fbefaf8147653758919875361e8d8
Headers show

Commit Message

Martin Storsjö March 21, 2011, 10:20 a.m.
A similar variable for the total stream duration was changed to
int64_t in b79c3df08807c96a945, due to overflows in some odd
streams.
---
 libavformat/applehttp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Luca Barbato March 21, 2011, 11:06 a.m. | #1
On 03/21/2011 11:20 AM, Martin Storsjö wrote:
> A similar variable for the total stream duration was changed to
> int64_t in b79c3df08807c96a945, due to overflows in some odd
> streams.

Ok and queued.

Patch

diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c
index af67b28..56fb795 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)