The purpose of the patch is just to add weird API incompatible versioned "inbetween" releases of ffmpeg. The list which is modified is the order Firefox tries to load the libavcodec version. As 59 is the first one mentioned it will be used. Only if not available it steps down the list. And as explained in my first comment Firefox is not checking for supported codecs. It just checks if it can load the versioned library.