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

@nogc nothrow extern (C)
av_packet_alloc
()

Meta