mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00: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
(cherry picked from commit c9a0aa9db0)
This commit is contained in:
parent
6dd0ace992
commit
7ed20efae4
1 changed files with 2 additions and 2 deletions
|
|
@ -460,8 +460,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…
Reference in a new issue