aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-12-22 16:18:07 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-12-22 16:18:07 +0000
commit1e0f346896841598ee18f0145d86c2f352ee8ed8 (patch)
treea92eb6ffab6bb936fd7f9c1caf1137e1895d4ca4 /libavformat/avio.h
parent4159db8ca34eb80e3761351058dea42aae40bd67 (diff)
downloadffmpeg-1e0f346896841598ee18f0145d86c2f352ee8ed8.tar.gz
Add a av_alloc_put_byte function.
The name is in analogy to init_put_byte, but I would not mind it being changed to something better. Originally committed as revision 11305 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 0957d9dbfc..9443cb017b 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -181,6 +181,14 @@ int init_put_byte(ByteIOContext *s,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
offset_t (*seek)(void *opaque, offset_t offset, int whence));
+ByteIOContext *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),
+ offset_t (*seek)(void *opaque, offset_t offset, int whence));
void put_byte(ByteIOContext *s, int b);
void put_buffer(ByteIOContext *s, const unsigned char *buf, int size);