Function avio_read_partial

Source
pub unsafe extern "C" fn avio_read_partial(
    s: *mut AVIOContext,
    buf: *mut c_uchar,
    size: c_int,
) -> c_int
Expand description

Read size bytes from AVIOContext into buf. Unlike avio_read(), this is allowed to read fewer bytes than requested. The missing bytes can be read in the next call. This always tries to read at least 1 byte. Useful to reduce latency in certain cases. @return number of bytes read or AVERROR