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.

@nogc nothrow extern (C)
int
av_packet_ref

Meta