Fix CeaUtil's invalid SeiMessage skipping

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=185673454
This commit is contained in:
aquilescanta 2018-02-14 05:26:28 -08:00 committed by Oliver Woodman
parent 4d26b316cc
commit 115d199532

View File

@ -52,7 +52,7 @@ public final class CeaUtil {
if (payloadSize == -1 || payloadSize > seiBuffer.bytesLeft()) {
// This might occur if we're trying to read an encrypted 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) {
int countryCode = seiBuffer.readUnsignedByte();
int providerCode = seiBuffer.readUnsignedShort();