pub unsafe extern "C" fn av_packet_ref(
    dst: *mut AVPacket,
    src: *const AVPacket
) -> c_int
Expand description

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. Will be completely overwritten. @param src Source packet

@return 0 on success, a negative AVERROR on error. On error, dst will be blank (as if returned by av_packet_alloc()).