diff options
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 9ffe935675..2b15e8d76b 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -112,7 +112,7 @@ int url_read(URLContext *h, unsigned char *buf, int size); * certain there was either an error or the end of file was reached. */ int url_read_complete(URLContext *h, unsigned char *buf, int size); -int url_write(URLContext *h, unsigned char *buf, int size); +int url_write(URLContext *h, const unsigned char *buf, int size); /** * Changes the position that will be used by the next read/write @@ -224,7 +224,7 @@ typedef struct URLProtocol { const char *name; int (*url_open)(URLContext *h, const char *url, int flags); int (*url_read)(URLContext *h, unsigned char *buf, int size); - int (*url_write)(URLContext *h, unsigned char *buf, int size); + int (*url_write)(URLContext *h, const unsigned char *buf, int size); int64_t (*url_seek)(URLContext *h, int64_t pos, int whence); int (*url_close)(URLContext *h); struct URLProtocol *next; |