av_frame_make_writable

Ensure that the frame data is writable, avoiding data copy if possible.

Do nothing if the frame is writable, allocate new buffers and copy the data if it is not.

@return 0 on success, a negative AVERROR on error.

@see av_frame_is_writable(), av_buffer_is_writable(), av_buffer_make_writable()

extern (C) @nogc nothrow
int
av_frame_make_writable

Meta