diff options
author | Martin Storsjö <martin@martin.st> | 2010-06-01 07:46:23 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-01 07:46:23 +0000 |
commit | 27241cbffe180fc92f9f519c6ea7957fc4b3b0c9 (patch) | |
tree | 7076509cac1a6aec2ff053b1a95fe8eab7b99465 /libavformat/avio.h | |
parent | 3d9408f4a7129ba6fb06f838afa5663c5c73075d (diff) | |
download | ffmpeg-27241cbffe180fc92f9f519c6ea7957fc4b3b0c9.tar.gz |
Declare the url_write buffer parameter as const
Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
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; |