mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Set profile for DV profile 10 AV1
PiperOrigin-RevId: 612918953
This commit is contained in:
parent
9abe9e2a97
commit
11b14d7594
2 changed files with 11 additions and 0 deletions
|
|
@ -1342,6 +1342,8 @@ public final class MediaCodecUtil {
|
|||
return CodecProfileLevel.DolbyVisionProfileDvheSt;
|
||||
case "09":
|
||||
return CodecProfileLevel.DolbyVisionProfileDvavSe;
|
||||
case "10":
|
||||
return CodecProfileLevel.DolbyVisionProfileDvav110;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,6 +69,15 @@ public final class MediaCodecUtilTest {
|
|||
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getCodecProfileAndLevel_handlesDolbyVisionProfile10CodecString() {
|
||||
assertCodecProfileAndLevelForCodecsString(
|
||||
MimeTypes.VIDEO_DOLBY_VISION,
|
||||
"dav1.10.09",
|
||||
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvav110,
|
||||
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelUhd60);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getCodecProfileAndLevel_handlesAv1ProfileMain8CodecString() {
|
||||
assertCodecProfileAndLevelForCodecsString(
|
||||
|
|
|
|||
Loading…
Reference in a new issue