mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
ignore unused SPU commands without arguments instead of ignoring the whole subtitle
This commit is contained in:
parent
4045acd13b
commit
b32ac9b195
@ -106,6 +106,9 @@ public final class VobsubParser implements SubtitleParser {
|
|||||||
|
|
||||||
private static final class CueBuilder {
|
private static final class CueBuilder {
|
||||||
|
|
||||||
|
private static final int CMD_FORCE_START = 0;
|
||||||
|
private static final int CMD_START = 1;
|
||||||
|
private static final int CMD_STOP = 2;
|
||||||
private static final int CMD_COLORS = 3;
|
private static final int CMD_COLORS = 3;
|
||||||
private static final int CMD_ALPHA = 4;
|
private static final int CMD_ALPHA = 4;
|
||||||
private static final int CMD_AREA = 5;
|
private static final int CMD_AREA = 5;
|
||||||
@ -198,6 +201,11 @@ public final class VobsubParser implements SubtitleParser {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case CMD_FORCE_START:
|
||||||
|
case CMD_START:
|
||||||
|
case CMD_STOP:
|
||||||
|
// ignore unused commands without arguments
|
||||||
|
break;
|
||||||
case CMD_END:
|
case CMD_END:
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user