diff options
author | Simon A. Eugster <simon.eu@gmail.com> | 2012-06-09 11:16:12 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-19 10:07:46 +0300 |
commit | 7146177d1812966b3e19025271965625ac7a054d (patch) | |
tree | e887410d9ecdce4b4dd47ed9683f93aa84ec5390 /libavcodec/avcodec.h | |
parent | 8703f0140f89bb761e9b158978aee51d90d5293d (diff) | |
download | ffmpeg-streaming-7146177d1812966b3e19025271965625ac7a054d.zip ffmpeg-streaming-7146177d1812966b3e19025271965625ac7a054d.tar.gz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |