Revision 403ee835 libavformat/avio.h

View differences:

libavformat/avio.h
448 448
#endif
449 449
attribute_deprecated void put_flush_packet(AVIOContext *s);
450 450
attribute_deprecated int url_open_dyn_buf(AVIOContext **s);
451
attribute_deprecated int url_open_dyn_packet_buf(AVIOContext **s, int max_packet_size);
451 452
attribute_deprecated int url_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer);
452 453
/**
453 454
 * @}
......
685 686
int avio_open_dyn_buf(AVIOContext **s);
686 687

  
687 688
/**
688
 * Open a write only packetized memory stream with a maximum packet
689
 * size of 'max_packet_size'.  The stream is stored in a memory buffer
690
 * with a big endian 4 byte header giving the packet size in bytes.
691
 *
692
 * @param s new IO context
693
 * @param max_packet_size maximum packet size (must be > 0)
694
 * @return zero if no error.
695
 */
696
int url_open_dyn_packet_buf(AVIOContext **s, int max_packet_size);
697

  
698
/**
699 689
 * Return the written size and a pointer to the buffer. The buffer
700
 * must be freed with av_free(). If the buffer is opened with
701
 * avio_open_dyn_buf, then padding of FF_INPUT_BUFFER_PADDING_SIZE is
702
 * added; if opened with url_open_dyn_packet_buf, no padding is added.
690
 * must be freed with av_free().
691
 * Padding of FF_INPUT_BUFFER_PADDING_SIZE is added to the buffer.
703 692
 *
704 693
 * @param s IO context
705 694
 * @param pbuffer pointer to a byte buffer

Also available in: Unified diff