av_packet_make_refcounted

Ensure the data described by a given packet is reference counted.

@note This function does not ensure that the reference will be writable. Use av_packet_make_writable instead for that purpose.

@see av_packet_ref @see av_packet_make_writable

@param pkt packet whose data should be made reference counted.

@return 0 on success, a negative AVERROR on error. On failure, the packet is unchanged.

extern (C) @nogc nothrow
int
av_packet_make_refcounted

Meta