Fix the logic to get the max supported encoding level.
On some Android devices, the return value of ``` MediaCodecInfo.getCapabilitiesForType(mimeType).profileLevels ``` contains one entry for each encoding profile, like <profile, maxSupportedLevel> but on some other devices, there are multiple entries for the same profile, like <HIGH_PROFILE, LEVEL1>, <HIGH_PROFILE, LEVEL2>, <HIGH_PROFILE, LEVEL3>, where we need to iterate through all the entries and find the max. PiperOrigin-RevId: 427727030
Showing
with
4 additions
and
2 deletions
Please
register
or
sign in
to comment