From 7146177d1812966b3e19025271965625ac7a054d Mon Sep 17 00:00:00 2001 From: "Simon A. Eugster" Date: Sat, 9 Jun 2012 11:16:12 +0200 Subject: lavc: Extend the documentation for avcodec_init_packet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a note that pkt->data and pkt->size must be initialized. Signed-off-by: Martin Storsjö --- libavcodec/avcodec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 94c2ed7..eac6894 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); -- cgit v1.1