mirror of
https://github.com/androidx/media.git
synced 2025-05-09 16:40:55 +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 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…
x
Reference in New Issue
Block a user