[][src]Function stainless_ffmpeg_sys::av_buffersink_get_samples

pub unsafe extern "C" fn av_buffersink_get_samples(
    ctx: *mut AVFilterContext,
    frame: *mut AVFrame,
    nb_samples: c_int
) -> c_int

Same as av_buffersink_get_frame(), but with the ability to specify the number of samples read. This function is less efficient than av_buffersink_get_frame(), because it copies the data around.

@param ctx pointer to a context of the abuffersink AVFilter. @param frame pointer to an allocated frame that will be filled with data. The data must be freed using av_frame_unref() / av_frame_free() frame will contain exactly nb_samples audio samples, except at the end of stream, when it can contain less than nb_samples.

@return The return codes have the same meaning as for av_buffersink_get_frame().

@warning do not mix this function with av_buffersink_get_frame(). Use only one or the other with a single sink, not both.