Commit 1b3cb639 by andrewlewis Committed by Oliver Woodman

Signal when supplemental data is present for vp9

PiperOrigin-RevId: 266085854
parent 0a0ab8d5
...@@ -66,6 +66,7 @@ public abstract class VideoDecoderOutputBuffer extends OutputBuffer { ...@@ -66,6 +66,7 @@ public abstract class VideoDecoderOutputBuffer extends OutputBuffer {
this.timeUs = timeUs; this.timeUs = timeUs;
this.mode = mode; this.mode = mode;
if (supplementalData != null) { if (supplementalData != null) {
addFlag(C.BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA);
int size = supplementalData.limit(); int size = supplementalData.limit();
if (this.supplementalData == null || this.supplementalData.capacity() < size) { if (this.supplementalData == null || this.supplementalData.capacity() < size) {
this.supplementalData = ByteBuffer.allocate(size); this.supplementalData = ByteBuffer.allocate(size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment