mirror of
https://github.com/androidx/media.git
synced 2025-05-04 14:10:40 +08:00
Use int for an unsigned byte value in Cea608Decoder
This is a no-op, but it's more 'correct' because it avoids any potential sign mix-ups that come from storing an unsigned byte (with a potentially set MSB) in a signed java byte variable. PiperOrigin-RevId: 483409798
This commit is contained in:
parent
a7bfa12eec
commit
3d0f43a149
@ -458,8 +458,8 @@ public final class Cea608Decoder extends CeaDecoder {
|
||||
ccData.reset(subtitleData.array(), subtitleData.limit());
|
||||
boolean captionDataProcessed = false;
|
||||
while (ccData.bytesLeft() >= packetLength) {
|
||||
byte ccHeader =
|
||||
packetLength == 2 ? CC_IMPLICIT_DATA_HEADER : (byte) ccData.readUnsignedByte();
|
||||
int ccHeader = packetLength == 2 ? CC_IMPLICIT_DATA_HEADER : ccData.readUnsignedByte();
|
||||
|
||||
int ccByte1 = ccData.readUnsignedByte();
|
||||
int ccByte2 = ccData.readUnsignedByte();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user