diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-17 08:19:54 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-03 22:47:32 +0200 |
commit | 403ee835e7913eb9536b22c2b22edfdd700166a9 (patch) | |
tree | e93cbad528f5f9de1f3f8b9e4d3119a8ca942a33 /libavformat/avio_internal.h | |
parent | 6dc7d80de7236d04a6ee30f0e4cd03f055893bcf (diff) | |
download | ffmpeg-403ee835e7913eb9536b22c2b22edfdd700166a9.tar.gz |
avio: make url_open_dyn_packet_buf internal.
It doesn't look fit to be a part of the public API.
Adding a temporary hack to ffserver to be able to use it, should be
cleaned up when somebody is up for it.
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r-- | libavformat/avio_internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h index 916de8fcc7..29553ed614 100644 --- a/libavformat/avio_internal.h +++ b/libavformat/avio_internal.h @@ -81,4 +81,15 @@ unsigned long ffio_get_checksum(AVIOContext *s); unsigned long ff_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len); +/** + * Open a write only packetized memory stream with a maximum packet + * size of 'max_packet_size'. The stream is stored in a memory buffer + * with a big endian 4 byte header giving the packet size in bytes. + * + * @param s new IO context + * @param max_packet_size maximum packet size (must be > 0) + * @return zero if no error. + */ +int ffio_open_dyn_packet_buf(AVIOContext **s, int max_packet_size); + #endif // AVFORMAT_AVIO_INTERNAL_H |