Replace all uses of av_close_input_file() with avformat_close_input().