Add DV profile 10 handling in getAlternativeCodecMimeType() method
This commit is contained in:
parent
e060c92068
commit
205bbef9d6
@ -350,8 +350,8 @@ public final class MediaCodecUtil {
|
|||||||
return MimeTypes.AUDIO_E_AC3;
|
return MimeTypes.AUDIO_E_AC3;
|
||||||
}
|
}
|
||||||
if (MimeTypes.VIDEO_DOLBY_VISION.equals(format.sampleMimeType)) {
|
if (MimeTypes.VIDEO_DOLBY_VISION.equals(format.sampleMimeType)) {
|
||||||
// H.264/AVC or H.265/HEVC decoders can decode the base layer of some DV profiles. This can't
|
// H.264/AVC, H.265/HEVC or AV1 decoders can decode the base layer of some DV profiles.
|
||||||
// be done for profile CodecProfileLevel.DolbyVisionProfileDvheStn and profile
|
// This can't be done for profile CodecProfileLevel.DolbyVisionProfileDvheStn and profile
|
||||||
// CodecProfileLevel.DolbyVisionProfileDvheDtb because the first one is not backward
|
// CodecProfileLevel.DolbyVisionProfileDvheDtb because the first one is not backward
|
||||||
// compatible and the second one is deprecated and is not always backward compatible.
|
// compatible and the second one is deprecated and is not always backward compatible.
|
||||||
@Nullable Pair<Integer, Integer> codecProfileAndLevel = getCodecProfileAndLevel(format);
|
@Nullable Pair<Integer, Integer> codecProfileAndLevel = getCodecProfileAndLevel(format);
|
||||||
@ -362,6 +362,8 @@ public final class MediaCodecUtil {
|
|||||||
return MimeTypes.VIDEO_H265;
|
return MimeTypes.VIDEO_H265;
|
||||||
} else if (profile == CodecProfileLevel.DolbyVisionProfileDvavSe) {
|
} else if (profile == CodecProfileLevel.DolbyVisionProfileDvavSe) {
|
||||||
return MimeTypes.VIDEO_H264;
|
return MimeTypes.VIDEO_H264;
|
||||||
|
} else if (profile == CodecProfileLevel.DolbyVisionProfileDvav110) {
|
||||||
|
return MimeTypes.VIDEO_AV1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user