From 8be1c6563cd3e13896b8f3381cf6a8e200c1f53b Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Mon, 13 Aug 2001 21:37:10 +0000 Subject: win32 fixes Originally committed as revision 78 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libav/aviobuf.c | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'libav/aviobuf.c') diff --git a/libav/aviobuf.c b/libav/aviobuf.c index c50629e067..242848e3e0 100644 --- a/libav/aviobuf.c +++ b/libav/aviobuf.c @@ -16,17 +16,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include "avformat.h" #define IO_BUFFER_SIZE 32768 @@ -186,16 +175,16 @@ void put_be32(ByteIOContext *s, unsigned int val) put_byte(s, val); } -void put_le64(ByteIOContext *s, unsigned long long val) +void put_le64(ByteIOContext *s, UINT64 val) { - put_le32(s, val & 0xffffffff); - put_le32(s, val >> 32); + put_le32(s, (UINT32)(val & 0xffffffff)); + put_le32(s, (UINT32)(val >> 32)); } -void put_be64(ByteIOContext *s, unsigned long long val) +void put_be64(ByteIOContext *s, UINT64 val) { - put_be32(s, val >> 32); - put_be32(s, val & 0xffffffff); + put_be32(s, (UINT32)(val >> 32)); + put_be32(s, (UINT32)(val & 0xffffffff)); } void put_le16(ByteIOContext *s, unsigned int val) @@ -287,7 +276,7 @@ unsigned int get_le32(ByteIOContext *s) return val; } -unsigned long long get_le64(ByteIOContext *s) +UINT64 get_le64(ByteIOContext *s) { UINT64 val; val = (UINT64)get_le32(s); @@ -313,7 +302,7 @@ unsigned int get_be32(ByteIOContext *s) return val; } -unsigned long long get_be64(ByteIOContext *s) +UINT64 get_be64(ByteIOContext *s) { UINT64 val; val = (UINT64)get_be32(s) << 32; @@ -335,7 +324,7 @@ int url_read_packet(void *opaque, UINT8 *buf, int buf_size) return url_read(h, buf, buf_size); } -int url_seek_packet(void *opaque, long long offset, int whence) +int url_seek_packet(void *opaque, INT64 offset, int whence) { URLContext *h = opaque; url_seek(h, offset, whence); -- cgit v1.2.3