Commit fab2a0d5 by andrewlewis Committed by Oliver Woodman

Fix VideoDecoderOutputBuffer supplemental data

The limit of this.supplementalData was not reset.

PiperOrigin-RevId: 273515718
parent a7db26c3
......@@ -97,8 +97,9 @@ public class VideoDecoderOutputBuffer extends OutputBuffer {
int size = supplementalData.limit();
if (this.supplementalData == null || this.supplementalData.capacity() < size) {
this.supplementalData = ByteBuffer.allocate(size);
} else {
this.supplementalData.clear();
}
this.supplementalData.position(0);
this.supplementalData.put(supplementalData);
this.supplementalData.flip();
supplementalData.position(0);
......
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