Fix MediaCodecUtil regression.
On older devices getCapabilitiesForType calls fail for some secondary codecs. We didn't used to call getCapabilitiesForType on secondary codecs, and so avoided this issue. This change suppresses any exceptions encountered when querying secondary decoders on API levels prior to N, to restore previous behavior when a failure occurs. Issue: #1534 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124010242
Showing
with
32 additions
and
15 deletions
Please
register
or
sign in
to comment