Mercurial > libavformat.hg
comparison aviobuf.c @ 64:b0e0eb595e29 libavformat
* static,const,compiler warning cleanup
author | kabi |
---|---|
date | Mon, 10 Feb 2003 09:35:32 +0000 |
parents | 05318cf2e886 |
children | a58a8a53eb46 |
comparison
equal
deleted
inserted
replaced
63:8329ba7cbd01 | 64:b0e0eb595e29 |
---|---|
15 * You should have received a copy of the GNU Lesser General Public | 15 * You should have received a copy of the GNU Lesser General Public |
16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 */ | 18 */ |
19 #include "avformat.h" | 19 #include "avformat.h" |
20 #include "avio.h" | |
20 #include <stdarg.h> | 21 #include <stdarg.h> |
21 | 22 |
22 #define IO_BUFFER_SIZE 32768 | 23 #define IO_BUFFER_SIZE 32768 |
23 | 24 |
24 int init_put_byte(ByteIOContext *s, | 25 int init_put_byte(ByteIOContext *s, |
379 return val; | 380 return val; |
380 } | 381 } |
381 | 382 |
382 /* link with avio functions */ | 383 /* link with avio functions */ |
383 | 384 |
384 void url_write_packet(void *opaque, UINT8 *buf, int buf_size) | 385 static void url_write_packet(void *opaque, UINT8 *buf, int buf_size) |
385 { | 386 { |
386 URLContext *h = opaque; | 387 URLContext *h = opaque; |
387 url_write(h, buf, buf_size); | 388 url_write(h, buf, buf_size); |
388 } | 389 } |
389 | 390 |
390 int url_read_packet(void *opaque, UINT8 *buf, int buf_size) | 391 static int url_read_packet(void *opaque, UINT8 *buf, int buf_size) |
391 { | 392 { |
392 URLContext *h = opaque; | 393 URLContext *h = opaque; |
393 return url_read(h, buf, buf_size); | 394 return url_read(h, buf, buf_size); |
394 } | 395 } |
395 | 396 |
396 int url_seek_packet(void *opaque, INT64 offset, int whence) | 397 static int url_seek_packet(void *opaque, INT64 offset, int whence) |
397 { | 398 { |
398 URLContext *h = opaque; | 399 URLContext *h = opaque; |
399 url_seek(h, offset, whence); | 400 url_seek(h, offset, whence); |
400 return 0; | 401 return 0; |
401 } | 402 } |