Commit 7146177d authored by Simon A. Eugster's avatar Simon A. Eugster Committed by Martin Storsjö

lavc: Extend the documentation for avcodec_init_packet

Add a note that pkt->data and pkt->size must be initialized.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 8703f014
......@@ -3284,6 +3284,9 @@ void av_destruct_packet(AVPacket *pkt);
/**
* 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
*/
void av_init_packet(AVPacket *pkt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment