Centralize canKeepCodec logic
Logic for determining if (and how) decoders can be adapted is currently split between renderers and MediaCodecInfo. This change centralizes the majority of the logic in MediaCodecInfo. This change also fixes a bug in MediaCodecAudioRenderer when computing max values for the codec. Previously, max values would not be increased to account for potential adaptation to another stream in the case that the codec needs to be flushed for the adaptation to occur. PiperOrigin-RevId: 339133416
Showing
with
235 additions
and
90 deletions
Please
register
or
sign in
to comment