@ -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 ) ;
/**
* @ }
@ -684,22 +685,10 @@ 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