av_packet_ref

Setup a new reference to the data described by a given packet

If src is reference-counted, setup dst as a new reference to the buffer in src. Otherwise allocate a new buffer in dst and copy the data from src into it.

All the other fields are copied from src.

@see av_packet_unref

@param dst Destination packet @param src Source packet

@return 0 on success, a negative AVERROR on error.

extern (C) @nogc nothrow
int
av_packet_ref

Meta