[][src]Function stainless_ffmpeg_sys::avcodec_flush_buffers

pub unsafe extern "C" fn avcodec_flush_buffers(avctx: *mut AVCodecContext)

Reset the internal decoder state / flush internal buffers. Should be called e.g. when seeking or when switching to a different stream.

@note when refcounted frames are not used (i.e. avctx->refcounted_frames is 0), this invalidates the frames previously returned from the decoder. When refcounted frames are used, the decoder just releases any references it might keep internally, but the caller's reference remains valid.