跳到主要内容

av_new_packet

搜索

函数 av_new_packet 

源代码
pub unsafe extern "C" fn av_new_packet(
    pkt: *mut AVPacket,
    size: c_int,
) -> c_int
展开描述

Allocate the payload of a packet and initialize its fields with default values.

@param pkt packet @param size wanted payload size @return 0 if OK, AVERROR_xxx otherwise