aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-20 15:03:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-22 02:44:36 +0100
commit90ed2776ea7368f1b6cf07af5f29fd06efbfcd65 (patch)
tree29ba6321e5d9705f2b2b74c9cfe0755fb7a0fe58 /libavformat/avio.h
parent34bb0575c164dcbe945add0f314d1c1889f9d23e (diff)
downloadffmpeg-90ed2776ea7368f1b6cf07af5f29fd06efbfcd65.tar.gz
avio: rename av_alloc_put_byte -> avio_alloc_context for consistency
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 8d9ac969cb4ac3e3e18f6425703af4d7aec6c513)
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 060f06e6f2..4fb701696e 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -370,8 +370,17 @@ attribute_deprecated int init_put_byte(AVIOContext *s,
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));
+attribute_deprecated 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));
#endif
-AVIOContext *av_alloc_put_byte(
+
+AVIOContext *avio_alloc_context(
unsigned char *buffer,
int buffer_size,
int write_flag,