mirror of
https://github.com/samsonjs/media.git
synced 2026-04-24 14:37:45 +00:00
Merge pull request #9924 from jruesga:cea708-decoder-honor-service-block-size
PiperOrigin-RevId: 426953267
This commit is contained in:
parent
7e3416c5be
commit
4916e4f315
1 changed files with 3 additions and 1 deletions
|
|
@ -329,7 +329,9 @@ public final class Cea708Decoder extends CeaDecoder {
|
|||
// 8.10.4 for more details.
|
||||
boolean cuesNeedUpdate = false;
|
||||
|
||||
while (serviceBlockPacket.bitsLeft() > 0) {
|
||||
int blockEndBitPosition = serviceBlockPacket.getPosition() + (blockSize * 8);
|
||||
while (serviceBlockPacket.bitsLeft() > 0
|
||||
&& serviceBlockPacket.getPosition() < blockEndBitPosition) {
|
||||
int command = serviceBlockPacket.readBits(8);
|
||||
if (command != COMMAND_EXT1) {
|
||||
if (command <= GROUP_C0_END) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue