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.
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.