guess_format is deprecated, use av_guess_format.