Fixed Logically dead code CID18084

This commit is contained in:
niksedk 2014-10-01 19:19:04 +02:00 committed by XhmikosR
parent 6ff0247a37
commit 78e460c063

View File

@ -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;