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.h | |
parent | 6dc7d80de7236d04a6ee30f0e4cd03f055893bcf (diff) | |
download | ffmpeg-streaming-403ee835e7913eb9536b22c2b22edfdd700166a9.zip ffmpeg-streaming-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.h')
-rw-r--r-- | libavformat/avio.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 5bc8582..69896d1 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -448,6 +448,7 @@ attribute_deprecated int url_fprintf(AVIOContext *s, const char *fmt, ...); #endif attribute_deprecated void put_flush_packet(AVIOContext *s); attribute_deprecated int url_open_dyn_buf(AVIOContext **s); +attribute_deprecated int url_open_dyn_packet_buf(AVIOContext **s, int max_packet_size); attribute_deprecated int url_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer); /** * @} @@ -685,21 +686,9 @@ attribute_deprecated int url_close_buf(AVIOContext *s); int avio_open_dyn_buf(AVIOContext **s); /** - * 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 url_open_dyn_packet_buf(AVIOContext **s, int max_packet_size); - -/** * Return the written size and a pointer to the buffer. The buffer - * must be freed with av_free(). If the buffer is opened with - * avio_open_dyn_buf, then padding of FF_INPUT_BUFFER_PADDING_SIZE is - * added; if opened with url_open_dyn_packet_buf, no padding is added. + * must be freed with av_free(). + * Padding of FF_INPUT_BUFFER_PADDING_SIZE is added to the buffer. * * @param s IO context * @param pbuffer pointer to a byte buffer |