OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8703f01
)
lavc: Extend the documentation for avcodec_init_packet
author
Simon A. Eugster
<simon.eu@gmail.com>
Sat, 9 Jun 2012 09:16:12 +0000
(11:16 +0200)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/libavcodec/avcodec.h
b/libavcodec/avcodec.h
index
94c2ed7
..
eac6894
100644
(file)
--- 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);