1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavc: Extend the documentation for avcodec_init_packet

Add a note that pkt->data and pkt->size must be initialized.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Simon A. Eugster 2012-06-09 11:16:12 +02:00 committed by Martin Storsjö
parent 8703f0140f
commit 7146177d18

View File

@ -3284,6 +3284,9 @@ void av_destruct_packet(AVPacket *pkt);
/** /**
* Initialize optional fields of a packet with default values. * Initialize optional fields of a packet with default values.
* *
* Note, this does not touch the data and size members, which have to be
* initialized separately.
*
* @param pkt packet * @param pkt packet
*/ */
void av_init_packet(AVPacket *pkt); void av_init_packet(AVPacket *pkt);