ignore unused SPU commands without arguments instead of ignoring the whole subtitle

This commit is contained in:
Sven Wischnowsky 2025-02-19 11:07:54 +01:00
parent 4045acd13b
commit b32ac9b195

View File

@ -106,6 +106,9 @@ public final class VobsubParser implements SubtitleParser {
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_ALPHA = 4;
private static final int CMD_AREA = 5;
@ -198,6 +201,11 @@ public final class VobsubParser implements SubtitleParser {
return;
}
break;
case CMD_FORCE_START:
case CMD_START:
case CMD_STOP:
// ignore unused commands without arguments
break;
case CMD_END:
default:
return;