mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00
Support ApplicationVersion = 1 for HDR10+
MediaCodecRenderer allows passing HDR10+ out-of-bound metadata with ApplicationVersion = 1. PiperOrigin-RevId: 463822315
This commit is contained in:
parent
3b5a53f1a6
commit
81d1dafec6
@ -966,7 +966,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||||||
&& ituTT35TerminalProviderCode == 0x003C
|
&& ituTT35TerminalProviderCode == 0x003C
|
||||||
&& ituTT35TerminalProviderOrientedCode == 0x0001
|
&& ituTT35TerminalProviderOrientedCode == 0x0001
|
||||||
&& applicationIdentifier == 4
|
&& applicationIdentifier == 4
|
||||||
&& applicationVersion == 0) {
|
&& (applicationVersion == 0 || applicationVersion == 1)) {
|
||||||
// The metadata size may vary so allocate a new array every time. This is not too
|
// The metadata size may vary so allocate a new array every time. This is not too
|
||||||
// inefficient because the metadata is only a few tens of bytes.
|
// inefficient because the metadata is only a few tens of bytes.
|
||||||
byte[] hdr10PlusInfo = new byte[data.remaining()];
|
byte[] hdr10PlusInfo = new byte[data.remaining()];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user