This change precedes one that will remove Format.encoding. PiperOrigin-RevId: 322619495
Common code used by other ExoPlayer modules.