mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fixed Logically dead code CID18084
This commit is contained in:
parent
6ff0247a37
commit
78e460c063
@ -92,7 +92,7 @@ namespace Nikse.SubtitleEdit.Logic.VobSub
|
||||
|
||||
int command = _data[commandIndex];
|
||||
int numberOfCommands = 0;
|
||||
while (command != 0xFF && numberOfCommands < 1000 && commandIndex < _data.Length)
|
||||
while (command != (int)DisplayControlCommand.End && numberOfCommands < 1000 && commandIndex < _data.Length)
|
||||
{
|
||||
numberOfCommands++;
|
||||
switch (command)
|
||||
@ -175,8 +175,6 @@ namespace Nikse.SubtitleEdit.Logic.VobSub
|
||||
commandIndex++;
|
||||
}
|
||||
break;
|
||||
case (int)DisplayControlCommand.End: // FF (255) - Stop looping of Display Control Commands
|
||||
break;
|
||||
default:
|
||||
commandIndex++;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user