av_packet_alloc

Allocate an AVPacket and set its fields to default values. The resulting struct must be freed using av_packet_free().

@return An AVPacket filled with default values or NULL on failure.

@note this only allocates the AVPacket itself, not the data buffers. Those must be allocated through other means such as av_new_packet.

@see av_new_packet

extern (C) @nogc nothrow
av_packet_alloc
()

Meta