reset AVInputFormat on close