Commit 5bc3fd86 authored by michael's avatar michael

Fix url_fsize for large files patch by (Wolfram Gloger: wmglo, dent med uni-muenchen de)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4322 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 91683d3a
...@@ -71,7 +71,7 @@ typedef struct { ...@@ -71,7 +71,7 @@ typedef struct {
void *opaque; void *opaque;
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size); int (*read_packet)(void *opaque, uint8_t *buf, int buf_size);
int (*write_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 */ offset_t pos; /* position in the file of the current buffer */
int must_flush; /* true if the next seek should flush */ int must_flush; /* true if the next seek should flush */
int eof_reached; /* true if eof reached */ int eof_reached; /* true if eof reached */
...@@ -91,7 +91,7 @@ int init_put_byte(ByteIOContext *s, ...@@ -91,7 +91,7 @@ int init_put_byte(ByteIOContext *s,
void *opaque, void *opaque,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_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_byte(ByteIOContext *s, int b);
void put_buffer(ByteIOContext *s, const unsigned char *buf, int size); void put_buffer(ByteIOContext *s, const unsigned char *buf, int size);
......
...@@ -29,7 +29,7 @@ int init_put_byte(ByteIOContext *s, ...@@ -29,7 +29,7 @@ int init_put_byte(ByteIOContext *s,
void *opaque, void *opaque,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_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 = buffer;
s->buffer_size = buffer_size; s->buffer_size = buffer_size;
...@@ -491,7 +491,7 @@ static int url_read_packet(void *opaque, uint8_t *buf, int buf_size) ...@@ -491,7 +491,7 @@ static int url_read_packet(void *opaque, uint8_t *buf, int buf_size)
return url_read(h, buf, buf_size); 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; URLContext *h = opaque;
return url_seek(h, offset, whence); return url_seek(h, offset, whence);
...@@ -701,7 +701,7 @@ static int dyn_packet_buf_write(void *opaque, uint8_t *buf, int buf_size) ...@@ -701,7 +701,7 @@ static int dyn_packet_buf_write(void *opaque, uint8_t *buf, int buf_size)
return dyn_buf_write(opaque, buf, buf_size); 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; DynBuffer *d = opaque;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment