av_packet_make_writable

Create a writable reference for the data described by a given packet, avoiding data copy if possible.

@param pkt Packet whose data should be made writable.

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

extern (C) @nogc nothrow
int
av_packet_make_writable

Meta