跳到主要内容

av_frame_alloc

搜索

函数 av_frame_alloc 

源代码
pub unsafe extern "C" fn av_frame_alloc() -> *mut AVFrame
展开描述

Allocate an AVFrame and set its fields to default values. The resulting struct must be freed using av_frame_free().

@return An AVFrame filled with default values or NULL on failure.

@note this only allocates the AVFrame itself, not the data buffers. Those must be allocated through other means, e.g. with av_frame_get_buffer() or manually.