[MPlayer-dev-eng] [PATCH] offset_t removed from avio.h
Andrew Wason
rectalogic at rectalogic.com
Fri Oct 3 16:24:10 CEST 2008
offset_t typedef was removed from avio.h but demux_lavf and muxer_lavf still use
it. So I guess they should use int64_t directly instead.
Index: libmpdemux/demux_lavf.c
===================================================================
--- libmpdemux/demux_lavf.c (revision 27687)
+++ libmpdemux/demux_lavf.c (working copy)
@@ -94,9 +94,9 @@
return ret;
}
-static offset_t mp_seek(void *opaque, offset_t pos, int whence) {
+static int64_t mp_seek(void *opaque, int64_t pos, int whence) {
stream_t *stream = opaque;
- offset_t current_pos;
+ int64_t current_pos;
mp_msg(MSGT_HEADER,MSGL_DBG2,"mp_seek(%p, %d, %d)\n", stream, (int)pos,
whence);
if(whence == SEEK_CUR)
pos +=stream_tell(stream);
Index: libmpdemux/muxer_lavf.c
===================================================================
--- libmpdemux/muxer_lavf.c (revision 27687)
+++ libmpdemux/muxer_lavf.c (working copy)
@@ -73,7 +73,7 @@
return stream_write_buffer(muxer->stream, buf, size);
}
-static offset_t mp_seek(void *opaque, offset_t pos, int whence)
+static int64_t mp_seek(void *opaque, int64_t pos, int whence)
{
muxer_t *muxer = opaque;
if(whence == SEEK_CUR)
More information about the MPlayer-dev-eng
mailing list