Change ret type to int64_t because url_fseek returns int64_t.
authorSean Soria <sean.soria@gmail.com>
Tue, 1 Dec 2009 22:56:44 +0000 (22:56 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Tue, 1 Dec 2009 22:56:44 +0000 (22:56 +0000)
This fixes seeking in files > 2gb.
Patch by Sean Soria, sean dot soria at gmail dot com.

Originally committed as revision 20693 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index fef8ca2..82d1adb 100644 (file)
@@ -1513,7 +1513,8 @@ static int av_seek_frame_byte(AVFormatContext *s, int stream_index, int64_t pos,
 static int av_seek_frame_generic(AVFormatContext *s,
                                  int stream_index, int64_t timestamp, int flags)
 {
-    int index, ret;
+    int index;
+    int64_t ret;
     AVStream *st;
     AVIndexEntry *ie;