Use av_guess_format() in place of the deprecated guess_format().