Mercurial > libavformat.hg
comparison avio.c @ 6068:7fdda2416684 libavformat
Declare the url_write buffer parameter as const
author | mstorsjo |
---|---|
date | Tue, 01 Jun 2010 07:46:23 +0000 |
parents | d5672e116fe4 |
children | 3fcaee5cf416 |
comparison
equal
deleted
inserted
replaced
6067:51ae348d4511 | 6068:7fdda2416684 |
---|---|
182 len += ret; | 182 len += ret; |
183 } | 183 } |
184 return len; | 184 return len; |
185 } | 185 } |
186 | 186 |
187 int url_write(URLContext *h, unsigned char *buf, int size) | 187 int url_write(URLContext *h, const unsigned char *buf, int size) |
188 { | 188 { |
189 int ret; | 189 int ret; |
190 if (!(h->flags & (URL_WRONLY | URL_RDWR))) | 190 if (!(h->flags & (URL_WRONLY | URL_RDWR))) |
191 return AVERROR(EIO); | 191 return AVERROR(EIO); |
192 /* avoid sending too big packets */ | 192 /* avoid sending too big packets */ |