Fix CeaUtil's invalid SeiMessage skipping
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185673454
This commit is contained in:
parent
4d26b316cc
commit
115d199532
@ -52,7 +52,7 @@ public final class CeaUtil {
|
|||||||
if (payloadSize == -1 || payloadSize > seiBuffer.bytesLeft()) {
|
if (payloadSize == -1 || payloadSize > seiBuffer.bytesLeft()) {
|
||||||
// This might occur if we're trying to read an encrypted SEI NAL unit.
|
// This might occur if we're trying to read an encrypted SEI NAL unit.
|
||||||
Log.w(TAG, "Skipping remainder of malformed SEI NAL unit.");
|
Log.w(TAG, "Skipping remainder of malformed SEI NAL unit.");
|
||||||
seiBuffer.setPosition(seiBuffer.limit());
|
nextPayloadPosition = seiBuffer.limit();
|
||||||
} else if (payloadType == PAYLOAD_TYPE_CC && payloadSize >= 8) {
|
} else if (payloadType == PAYLOAD_TYPE_CC && payloadSize >= 8) {
|
||||||
int countryCode = seiBuffer.readUnsignedByte();
|
int countryCode = seiBuffer.readUnsignedByte();
|
||||||
int providerCode = seiBuffer.readUnsignedShort();
|
int providerCode = seiBuffer.readUnsignedShort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user