# HG changeset patch # User mellum # Date 1080171168 0 # Node ID 96f8086bc2ba9b9c19b1afb3808b1af5bffdb70c # Parent c1ed10f3b052fd5c2cab63edcc096df2e321ab56 warning patrol diff -r c1ed10f3b052 -r 96f8086bc2ba file.c --- a/file.c Wed Mar 24 19:03:20 2004 +0000 +++ b/file.c Wed Mar 24 23:32:48 2004 +0000 @@ -50,26 +50,26 @@ fd = open(filename, access, 0666); if (fd < 0) return -ENOENT; - h->priv_data = (void *)fd; + h->priv_data = (void *)(size_t)fd; return 0; } static int file_read(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (size_t)h->priv_data; return read(fd, buf, size); } static int file_write(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (size_t)h->priv_data; return write(fd, buf, size); } /* XXX: use llseek */ static offset_t file_seek(URLContext *h, offset_t pos, int whence) { - int fd = (int)h->priv_data; + int fd = (size_t)h->priv_data; #ifdef CONFIG_WIN32 return _lseeki64(fd, pos, whence); #else @@ -79,7 +79,7 @@ static int file_close(URLContext *h) { - int fd = (int)h->priv_data; + int fd = (size_t)h->priv_data; return close(fd); } @@ -106,19 +106,19 @@ #if defined(CONFIG_WIN32) || defined(CONFIG_OS2) || defined(__CYGWIN__) setmode(fd, O_BINARY); #endif - h->priv_data = (void *)fd; + h->priv_data = (void *)(size_t)fd; return 0; } static int pipe_read(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (size_t)h->priv_data; return read(fd, buf, size); } static int pipe_write(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (size_t)h->priv_data; return write(fd, buf, size); } diff -r c1ed10f3b052 -r 96f8086bc2ba framehook.h --- a/framehook.h Wed Mar 24 19:03:20 2004 +0000 +++ b/framehook.h Wed Mar 24 23:32:48 2004 +0000 @@ -24,6 +24,6 @@ extern int frame_hook_add(int argc, char *argv[]); extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height); -extern void frame_hook_release(); +extern void frame_hook_release(void); #endif diff -r c1ed10f3b052 -r 96f8086bc2ba matroska.c --- a/matroska.c Wed Mar 24 19:03:20 2004 +0000 +++ b/matroska.c Wed Mar 24 23:32:48 2004 +0000 @@ -927,7 +927,7 @@ return res; if (num > sizeof(uint32_t)) { av_log(matroska->ctx, AV_LOG_ERROR, - "IDs of size %llu (> %d) not supported\n", + "IDs of size %llu (> %zu) not supported\n", num, sizeof(uint32_t)); return AVERROR_INVALIDDATA; } diff -r c1ed10f3b052 -r 96f8086bc2ba movenc.c --- a/movenc.c Wed Mar 24 19:03:20 2004 +0000 +++ b/movenc.c Wed Mar 24 23:32:48 2004 +0000 @@ -917,7 +917,7 @@ return 0; } -static int Timestamp() { +static int Timestamp(void) { return 1067949799U+(24107*86400); //its the modification time of this line :) } diff -r c1ed10f3b052 -r 96f8086bc2ba mpeg.c --- a/mpeg.c Wed Mar 24 19:03:20 2004 +0000 +++ b/mpeg.c Wed Mar 24 23:32:48 2004 +0000 @@ -82,10 +82,10 @@ static const int lpcm_freq_tab[4] = { 48000, 96000, 44100, 32000 }; #ifdef CONFIG_ENCODERS -extern AVOutputFormat mpeg1system_mux; -extern AVOutputFormat mpeg1vcd_mux; -extern AVOutputFormat mpeg2vob_mux; -extern AVOutputFormat mpeg2svcd_mux; +static AVOutputFormat mpeg1system_mux; +static AVOutputFormat mpeg1vcd_mux; +static AVOutputFormat mpeg2vob_mux; +static AVOutputFormat mpeg2svcd_mux; static int put_pack_header(AVFormatContext *ctx, uint8_t *buf, int64_t timestamp)