跳到主要内容

av_packet_alloc

搜索

函数 av_packet_alloc 

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

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

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

@note this only allocates the AVPacket itself, not the data buffers. Those must be allocated through other means such as av_new_packet.

@see av_new_packet