Liad Rubin 83861d5649 Migrate from MediaCodecList.getCodecCount to iterate getCodecInfos member function in HardwareVideoEncoderFactory
GetCodecCount is deprecated in API 21+ and getCodecInfos is encouraged to be used instead.
See guidance: https://developer.android.com/reference/android/media/MediaCodecList#getCodecCount()

Bug: webrtc:386857228
Change-Id: I01ce9ed6da25aade4679012e4ca5e308d7672ee8
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/373240
Reviewed-by: Zoé Lepaul <xalep@webrtc.org>
Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43721}
2025-01-13 05:42:51 -08:00
..
2025-01-10 08:49:43 -08:00