mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

`findDecoder/EncoderForFormat` seem to be more restrictive than querying `MediaCodecList` as done for playback, and it's not clear that the cases where no codec is found correspond to actual cases that would fail given that it seems this returns an empty string for many cases in production. Switch to using `MediaCodecUtil` and `EncoderUtil` for querying codecs instead. PiperOrigin-RevId: 525078321