Commit 115d1995 by aquilescanta Committed by Oliver Woodman

Fix CeaUtil's invalid SeiMessage skipping

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=185673454
parent 4d26b316
......@@ -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();
......
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