mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Add comment explaining Dolby Vision fallback logic
PiperOrigin-RevId: 357158075
This commit is contained in:
parent
6afb669aa7
commit
158e6de25a
1 changed files with 4 additions and 1 deletions
|
|
@ -377,7 +377,10 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||
mimeType, requiresSecureDecoder, requiresTunnelingDecoder);
|
||||
decoderInfos = MediaCodecUtil.getDecoderInfosSortedByFormatSupport(decoderInfos, format);
|
||||
if (MimeTypes.VIDEO_DOLBY_VISION.equals(mimeType)) {
|
||||
// Fall back to H.264/AVC or H.265/HEVC for the relevant DV profiles.
|
||||
// Fall back to H.264/AVC or H.265/HEVC for the relevant DV profiles. This can't be done for
|
||||
// profile CodecProfileLevel.DolbyVisionProfileDvheStn and profile
|
||||
// CodecProfileLevel.DolbyVisionProfileDvheDtb because the first one is not backward
|
||||
// compatible and the second one is deprecated and is not always backward compatible.
|
||||
@Nullable
|
||||
Pair<Integer, Integer> codecProfileAndLevel = MediaCodecUtil.getCodecProfileAndLevel(format);
|
||||
if (codecProfileAndLevel != null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue