# HG changeset patch # User michael # Date 1117471508 0 # Node ID 4fbe04f998bfa41df6a5af4e7ea0750875583312 # Parent b071a272ec7e1b9813b1f2d0b6e894a52e291c0c Fix url_fsize for large files patch by (Wolfram Gloger: wmglo, dent med uni-muenchen de) diff -r b071a272ec7e -r 4fbe04f998bf avio.h --- a/avio.h Mon May 30 16:42:36 2005 +0000 +++ b/avio.h Mon May 30 16:45:08 2005 +0000 @@ -71,7 +71,7 @@ void *opaque; int (*read_packet)(void *opaque, uint8_t *buf, int buf_size); int (*write_packet)(void *opaque, uint8_t *buf, int buf_size); - int (*seek)(void *opaque, offset_t offset, int whence); + offset_t (*seek)(void *opaque, offset_t offset, int whence); offset_t pos; /* position in the file of the current buffer */ int must_flush; /* true if the next seek should flush */ int eof_reached; /* true if eof reached */ @@ -91,7 +91,7 @@ void *opaque, int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), int (*write_packet)(void *opaque, uint8_t *buf, int buf_size), - int (*seek)(void *opaque, offset_t offset, int whence)); + offset_t (*seek)(void *opaque, offset_t offset, int whence)); void put_byte(ByteIOContext *s, int b); void put_buffer(ByteIOContext *s, const unsigned char *buf, int size); diff -r b071a272ec7e -r 4fbe04f998bf aviobuf.c --- a/aviobuf.c Mon May 30 16:42:36 2005 +0000 +++ b/aviobuf.c Mon May 30 16:45:08 2005 +0000 @@ -29,7 +29,7 @@ void *opaque, int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), int (*write_packet)(void *opaque, uint8_t *buf, int buf_size), - int (*seek)(void *opaque, offset_t offset, int whence)) + offset_t (*seek)(void *opaque, offset_t offset, int whence)) { s->buffer = buffer; s->buffer_size = buffer_size; @@ -491,7 +491,7 @@ return url_read(h, buf, buf_size); } -static int url_seek_packet(void *opaque, int64_t offset, int whence) +static offset_t url_seek_packet(void *opaque, offset_t offset, int whence) { URLContext *h = opaque; return url_seek(h, offset, whence); @@ -701,7 +701,7 @@ return dyn_buf_write(opaque, buf, buf_size); } -static int dyn_buf_seek(void *opaque, offset_t offset, int whence) +static offset_t dyn_buf_seek(void *opaque, offset_t offset, int whence) { DynBuffer *d = opaque;