summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorSimon A. Eugster <simon.eu@gmail.com>2012-06-09 11:16:12 +0200
committerMartin Storsjö <martin@martin.st>2012-06-19 10:07:46 +0300
commit7146177d1812966b3e19025271965625ac7a054d (patch)
treee887410d9ecdce4b4dd47ed9683f93aa84ec5390 /libavcodec/avcodec.h
parent8703f0140f89bb761e9b158978aee51d90d5293d (diff)
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>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 94c2ed7655..eac68946b2 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -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);