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.
See Implementation
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.