[−][src]Function ffmpeg_dev::sys::av_frame_make_writable
pub unsafe extern "C" fn av_frame_make_writable(frame: *mut AVFrame) -> c_int
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()