Function rsmpeg::ffi::av_get_packet[][src]

pub unsafe extern "C" fn av_get_packet(
    s: *mut AVIOContext,
    pkt: *mut AVPacket,
    size: i32
) -> i32
Expand description

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

@param s associated IO context @param pkt packet @param size desired payload size @return >0 (read size) if OK, AVERROR_xxx otherwise