[−][src]Function stainless_ffmpeg_sys::av_packet_ref
pub unsafe extern "C" fn av_packet_ref(
dst: *mut AVPacket,
src: *const AVPacket
) -> c_int
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.