Revert "avformat/utils: Close codec context since it is allocated by avformat_new_str...