Function av_packet_clone
pub unsafe extern "C" fn av_packet_clone(
src: *const AVPacket,
) -> *mut AVPacket
Expand description
Create a new packet that references the same data as src.
This is a shortcut for av_packet_alloc()+av_packet_ref().
@return newly created AVPacket on success, NULL on error.
@see av_packet_alloc @see av_packet_ref