跳到主要内容

swr_drop_output

搜索

函数 swr_drop_output 

源代码
pub unsafe extern "C" fn swr_drop_output(
    s: *mut SwrContext,
    count: c_int,
) -> c_int
展开描述

Drops the specified number of output samples.

This function, along with swr_inject_silence(), is called by swr_next_pts() if needed for “hard” compensation.

@param s allocated Swr context @param count number of samples to be dropped

@return >= 0 on success, or a negative AVERROR code on failure