mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Don't propagate empty supplemental data
PiperOrigin-RevId: 275425267
This commit is contained in:
parent
701b013cdd
commit
39d5f14343
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ public class VideoDecoderOutputBuffer extends OutputBuffer {
|
|||
long timeUs, @C.VideoOutputMode int mode, @Nullable ByteBuffer supplementalData) {
|
||||
this.timeUs = timeUs;
|
||||
this.mode = mode;
|
||||
if (supplementalData != null) {
|
||||
if (supplementalData != null && supplementalData.hasRemaining()) {
|
||||
addFlag(C.BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA);
|
||||
int size = supplementalData.limit();
|
||||
if (this.supplementalData == null || this.supplementalData.capacity() < size) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue