summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index 8873d5fcaf..d6ba1fa362 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -64,7 +64,7 @@ static int file_read(URLContext *h, unsigned char *buf, int size)
return read(fd, buf, size);
}
-static int file_write(URLContext *h, unsigned char *buf, int size)
+static int file_write(URLContext *h, const unsigned char *buf, int size)
{
int fd = (intptr_t) h->priv_data;
return write(fd, buf, size);