mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix CeaUtil's invalid SeiMessage skipping
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185673454
This commit is contained in:
parent
ed527437b7
commit
8dad8fde78
@ -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