mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
8703f0140f
commit
7146177d18
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user