diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-20 11:04:13 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-20 08:37:31 -0500 |
commit | e731b8d8729e75bfb69f5540e6446d6118dac549 (patch) | |
tree | bfefb15c001ad3e0993d95f2752aa61182f5188a /libavformat/avio.h | |
parent | ae628ec1fd7f54c102bf9e667a3edd404b9b9128 (diff) | |
download | ffmpeg-e731b8d8729e75bfb69f5540e6446d6118dac549.tar.gz |
avio: move init_put_byte() to a new private header and rename it
init_put_byte should never be used outside of lavf, since
sizeof(AVIOContext) isn't part of public ABI.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 14d371f1ed..060f06e6f2 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -361,9 +361,8 @@ typedef struct { #if FF_API_OLD_AVIO typedef attribute_deprecated AVIOContext ByteIOContext; -#endif -int init_put_byte(AVIOContext *s, +attribute_deprecated int init_put_byte(AVIOContext *s, unsigned char *buffer, int buffer_size, int write_flag, @@ -371,6 +370,7 @@ 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)); +#endif AVIOContext *av_alloc_put_byte( unsigned char *buffer, int buffer_size, |