[FFmpeg-cvslog] r11274 - in trunk/libavformat: avio.c avio.h aviobuf.c
michael
subversion
Wed Dec 19 22:11:08 CET 2007
Author: michael
Date: Wed Dec 19 22:11:08 2007
New Revision: 11274
Log:
Make recently added and still unused read_seek functions return offset_t.
Modified:
trunk/libavformat/avio.c
trunk/libavformat/avio.h
trunk/libavformat/aviobuf.c
Modified: trunk/libavformat/avio.c
==============================================================================
--- trunk/libavformat/avio.c (original)
+++ trunk/libavformat/avio.c Wed Dec 19 22:11:08 2007
@@ -199,7 +199,7 @@ int av_url_read_pause(URLContext *h, int
return h->prot->url_read_pause(h, pause);
}
-int av_url_read_seek(URLContext *h,
+offset_t av_url_read_seek(URLContext *h,
int stream_index, int64_t timestamp, int flags)
{
if (!h->prot->url_read_seek)
Modified: trunk/libavformat/avio.h
==============================================================================
--- trunk/libavformat/avio.h (original)
+++ trunk/libavformat/avio.h Wed Dec 19 22:11:08 2007
@@ -105,7 +105,7 @@ int av_url_read_pause(URLContext *h, int
* @return >= 0 on success
* @see AVInputFormat::read_seek
*/
-int av_url_read_seek(URLContext *h,
+offset_t av_url_read_seek(URLContext *h,
int stream_index, int64_t timestamp, int flags);
/**
@@ -124,7 +124,7 @@ typedef struct URLProtocol {
int (*url_close)(URLContext *h);
struct URLProtocol *next;
int (*url_read_pause)(URLContext *h, int pause);
- int (*url_read_seek)(URLContext *h,
+ offset_t (*url_read_seek)(URLContext *h,
int stream_index, int64_t timestamp, int flags);
} URLProtocol;
@@ -154,7 +154,7 @@ typedef struct {
unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size);
int error; ///< contains the error code or 0 if no error happened
int (*read_pause)(void *opaque, int pause);
- int (*read_seek)(void *opaque,
+ offset_t (*read_seek)(void *opaque,
int stream_index, int64_t timestamp, int flags);
} ByteIOContext;
@@ -189,7 +189,7 @@ int url_feof(ByteIOContext *s);
int url_ferror(ByteIOContext *s);
int av_url_read_fpause(ByteIOContext *h, int pause);
-int av_url_read_fseek(ByteIOContext *h,
+offset_t av_url_read_fseek(ByteIOContext *h,
int stream_index, int64_t timestamp, int flags);
#define URL_EOF (-1)
Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c (original)
+++ trunk/libavformat/aviobuf.c Wed Dec 19 22:11:08 2007
@@ -532,7 +532,7 @@ int url_fdopen(ByteIOContext **s, URLCon
(*s)->max_packet_size = max_packet_size;
if(h->prot) {
(*s)->read_pause = (int (*)(void *, int))h->prot->url_read_pause;
- (*s)->read_seek = (int (*)(void *, int, int64_t, int))h->prot->url_read_seek;
+ (*s)->read_seek = (offset_t (*)(void *, int, int64_t, int))h->prot->url_read_seek;
}
return 0;
}
@@ -646,11 +646,11 @@ int av_url_read_fpause(ByteIOContext *s,
return s->read_pause(s->opaque, pause);
}
-int av_url_read_fseek(ByteIOContext *s,
+offset_t av_url_read_fseek(ByteIOContext *s,
int stream_index, int64_t timestamp, int flags)
{
URLContext *h = s->opaque;
- int ret;
+ offset_t ret;
if (!s->read_seek)
return AVERROR(ENOSYS);
ret = s->read_seek(h, stream_index, timestamp, flags);
More information about the ffmpeg-cvslog
mailing list