OSDN Git Service

lavc: Extend the documentation for avcodec_init_packet
authorSimon A. Eugster <simon.eu@gmail.com>
Sat, 9 Jun 2012 09:16:12 +0000 (11:16 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 19 Jun 2012 07:07:46 +0000 (10:07 +0300)
Add a note that pkt->data and pkt->size must be initialized.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/avcodec.h

index 94c2ed7..eac6894 100644 (file)
@@ -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);