Mercurial > libavformat.hg
changeset 2831:e89500ae1608 libavformat
Remove unneeded avio wrapper functions.
author | michael |
---|---|
date | Wed, 19 Dec 2007 02:33:47 +0000 |
parents | d7b2ac8d796d |
children | 8ac5fe1c5549 |
files | aviobuf.c |
diffstat | 1 files changed, 1 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/aviobuf.c Mon Dec 17 19:12:43 2007 +0000 +++ b/aviobuf.c Wed Dec 19 02:33:47 2007 +0000 @@ -500,31 +500,6 @@ return val; } -/* link with avio functions */ - -#ifdef CONFIG_MUXERS -static int url_write_packet(void *opaque, uint8_t *buf, int buf_size) -{ - URLContext *h = opaque; - return url_write(h, buf, buf_size); -} -#else -#define url_write_packet NULL -#endif //CONFIG_MUXERS - -static int url_read_packet(void *opaque, uint8_t *buf, int buf_size) -{ - URLContext *h = opaque; - return url_read(h, buf, buf_size); -} - -static offset_t url_seek_packet(void *opaque, offset_t offset, int whence) -{ - URLContext *h = opaque; - return url_seek(h, offset, whence); - //return 0; -} - int url_fdopen(ByteIOContext **s, URLContext *h) { uint8_t *buffer; @@ -549,7 +524,7 @@ if (init_put_byte(*s, buffer, buffer_size, (h->flags & URL_WRONLY || h->flags & URL_RDWR), h, - url_read_packet, url_write_packet, url_seek_packet) < 0) { + url_read, url_write, url_seek) < 0) { av_free(buffer); av_freep(s); return AVERROR(EIO);