diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-20 15:03:29 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-21 10:23:44 -0500 |
commit | 8d9ac969cb4ac3e3e18f6425703af4d7aec6c513 (patch) | |
tree | 8333fe0bee0dc759e7691ed503a78a309777ea25 /libavformat/aviobuf.c | |
parent | 484a337cd7cd8bb180c4a1bd3321881f1c874a92 (diff) | |
download | ffmpeg-8d9ac969cb4ac3e3e18f6425703af4d7aec6c513.tar.gz |
avio: rename av_alloc_put_byte -> avio_alloc_context for consistency
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 7b1f5ca1fd..c3d69a185e 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -87,9 +87,21 @@ int init_put_byte(AVIOContext *s, return ffio_init_context(s, buffer, buffer_size, write_flag, opaque, read_packet, write_packet, seek); } +AVIOContext *av_alloc_put_byte( + unsigned char *buffer, + int buffer_size, + int write_flag, + void *opaque, + int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), + int (*write_packet)(void *opaque, uint8_t *buf, int buf_size), + int64_t (*seek)(void *opaque, int64_t offset, int whence)) +{ + return avio_alloc_context(buffer, buffer_size, write_flag, opaque, + read_packet, write_packet, seek); +} #endif -AVIOContext *av_alloc_put_byte( +AVIOContext *avio_alloc_context( unsigned char *buffer, int buffer_size, int write_flag, |