file: set the return value type for lseek to off_t
authorJean First <jeanfirst@gmail.com>
Wed, 26 Sep 2012 23:08:51 +0000 (01:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Sep 2012 23:47:49 +0000 (01:47 +0200)
fixes a bug introduced with 4ed5ac50d3e4f921003ecf60985f78337400f354

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/file.c

index defe316..8c41a3c 100644 (file)
@@ -135,7 +135,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
 static int64_t file_seek(URLContext *h, int64_t pos, int whence)
 {
     FileContext *c = h->priv_data;
-    int ret;
+    off_t ret;
 
     if (whence == AVSEEK_SIZE) {
         struct stat st;