mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Support ApplicationVersion = 1 for HDR10+
MediaCodecRenderer allows passing HDR10+ out-of-bound metadata
with ApplicationVersion = 1.
PiperOrigin-RevId: 463822315
(cherry picked from commit 95becec1e2)
This commit is contained in:
parent
561b83e282
commit
8779078088
1 changed files with 1 additions and 1 deletions
|
|
@ -969,7 +969,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||
&& ituTT35TerminalProviderCode == 0x003C
|
||||
&& ituTT35TerminalProviderOrientedCode == 0x0001
|
||||
&& applicationIdentifier == 4
|
||||
&& applicationVersion == 0) {
|
||||
&& (applicationVersion == 0 || applicationVersion == 1)) {
|
||||
// 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.
|
||||
byte[] hdr10PlusInfo = new byte[data.remaining()];
|
||||
|
|
|
|||
Loading…
Reference in a new issue