mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix DvbParser bug
Issue: #2957 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=160628086
This commit is contained in:
parent
79f7db7fcd
commit
a579b8d82d
1 changed files with 4 additions and 2 deletions
|
|
@ -667,13 +667,15 @@ import java.util.List;
|
|||
int runLength = 0;
|
||||
int clutIndex = 0;
|
||||
int peek = data.readBits(2);
|
||||
if (!data.readBit()) {
|
||||
if (peek != 0x00) {
|
||||
runLength = 1;
|
||||
clutIndex = peek;
|
||||
} else if (data.readBit()) {
|
||||
runLength = 3 + data.readBits(3);
|
||||
clutIndex = data.readBits(2);
|
||||
} else if (!data.readBit()) {
|
||||
} else if (data.readBit()) {
|
||||
runLength = 1;
|
||||
} else {
|
||||
switch (data.readBits(2)) {
|
||||
case 0x00:
|
||||
endOfPixelCodeString = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue