mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +00:00
Find only REGULAR_CODECS in EncoderUtil.
We used "ALL_COOECS" previously, and it is not necessary because "ALL_CODECS"
additionally the codecs that support tunneling/secure decoding, which there
is no use case in Transformer.
PiperOrigin-RevId: 458470278
(cherry picked from commit 8f89eba59c)
This commit is contained in:
parent
f1d4a4caab
commit
e3f1787c3a
1 changed files with 2 additions and 2 deletions
|
|
@ -234,7 +234,7 @@ public final class EncoderUtil {
|
|||
*/
|
||||
@Nullable
|
||||
public static String findCodecForFormat(MediaFormat format, boolean isDecoder) {
|
||||
MediaCodecList mediaCodecList = new MediaCodecList(MediaCodecList.ALL_CODECS);
|
||||
MediaCodecList mediaCodecList = new MediaCodecList(MediaCodecList.REGULAR_CODECS);
|
||||
// Format must not include KEY_FRAME_RATE on API21.
|
||||
// https://developer.android.com/reference/android/media/MediaCodecList#findDecoderForFormat(android.media.MediaFormat)
|
||||
@Nullable String frameRate = null;
|
||||
|
|
@ -350,7 +350,7 @@ public final class EncoderUtil {
|
|||
ImmutableListMultimap.Builder<String, MediaCodecInfo> encoderInfosBuilder =
|
||||
new ImmutableListMultimap.Builder<>();
|
||||
|
||||
MediaCodecList mediaCodecList = new MediaCodecList(MediaCodecList.ALL_CODECS);
|
||||
MediaCodecList mediaCodecList = new MediaCodecList(MediaCodecList.REGULAR_CODECS);
|
||||
MediaCodecInfo[] allCodecInfos = mediaCodecList.getCodecInfos();
|
||||
|
||||
for (MediaCodecInfo mediaCodecInfo : allCodecInfos) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue