mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00
Fix DvbParser bug
Issue: #2957 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=160628086
This commit is contained in:
parent
28030b6c7e
commit
04b57f9c8e
@ -667,13 +667,15 @@ import java.util.List;
|
|||||||
int runLength = 0;
|
int runLength = 0;
|
||||||
int clutIndex = 0;
|
int clutIndex = 0;
|
||||||
int peek = data.readBits(2);
|
int peek = data.readBits(2);
|
||||||
if (!data.readBit()) {
|
if (peek != 0x00) {
|
||||||
runLength = 1;
|
runLength = 1;
|
||||||
clutIndex = peek;
|
clutIndex = peek;
|
||||||
} else if (data.readBit()) {
|
} else if (data.readBit()) {
|
||||||
runLength = 3 + data.readBits(3);
|
runLength = 3 + data.readBits(3);
|
||||||
clutIndex = data.readBits(2);
|
clutIndex = data.readBits(2);
|
||||||
} else if (!data.readBit()) {
|
} else if (data.readBit()) {
|
||||||
|
runLength = 1;
|
||||||
|
} else {
|
||||||
switch (data.readBits(2)) {
|
switch (data.readBits(2)) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
endOfPixelCodeString = true;
|
endOfPixelCodeString = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user