summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorFalk Hüffner <mellum@users.sourceforge.net>2004-03-24 23:32:48 +0000
committerFalk Hüffner <mellum@users.sourceforge.net>2004-03-24 23:32:48 +0000
commit7906085fcc33feb5a0c617f5e01065bb9d0caa86 (patch)
tree830c3feb8c2c6333c5581ab5ae54d06ff267cc7d /libavformat
parentd957696f173ab3c9f222ab097669ed8f0b3951c2 (diff)
warning patrol
Originally committed as revision 2925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/file.c16
-rw-r--r--libavformat/framehook.h2
-rw-r--r--libavformat/matroska.c2
-rw-r--r--libavformat/movenc.c2
-rw-r--r--libavformat/mpeg.c8
5 files changed, 15 insertions, 15 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index 83f2e42ae1..00837c8fbb 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -50,26 +50,26 @@ static int file_open(URLContext *h, const char *filename, int flags)
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 offset_t file_seek(URLContext *h, offset_t pos, int whence)
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 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
#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 --git a/libavformat/framehook.h b/libavformat/framehook.h
index 61b65e489a..ed24c66bae 100644
--- a/libavformat/framehook.h
+++ b/libavformat/framehook.h
@@ -24,6 +24,6 @@ extern FrameHookRelease Release;
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 --git a/libavformat/matroska.c b/libavformat/matroska.c
index f8942aee4b..d36eb0c9cc 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -927,7 +927,7 @@ ebml_read_header (MatroskaDemuxContext *matroska,
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 --git a/libavformat/movenc.c b/libavformat/movenc.c
index b46ea5cf74..86d65b9c39 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -917,7 +917,7 @@ static int mov_write_header(AVFormatContext *s)
return 0;
}
-static int Timestamp() {
+static int Timestamp(void) {
return 1067949799U+(24107*86400); //its the modification time of this line :)
}
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index a5cd8dfae1..092790c69a 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -82,10 +82,10 @@ typedef struct {
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)