close
Closes the container and every byte source it owns. An operation of this source that is in FFmpeg is stopped first, and the close waits until it has unwound. The open packet reader of the source closes with it. Packets and frames stay valid until their own close.