Simplify av_close_input_file similarly to av_open_input_file previously