[FFmpeg-cvslog] lavc: Extend the documentation for avcodec_init_packet
Simon A. Eugster
git at videolan.org
Tue Jun 19 21:13:53 CEST 2012
ffmpeg | branch: master | Simon A. Eugster <simon.eu at gmail.com> | Sat Jun 9 11:16:12 2012 +0200| [7146177d1812966b3e19025271965625ac7a054d] | committer: 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: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7146177d1812966b3e19025271965625ac7a054d
---
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);
More information about the ffmpeg-cvslog
mailing list