No variable is need for infinite loop with break point

This commit is contained in:
ivandrofly 2015-06-14 23:44:51 +00:00
parent 1c4932ba8d
commit ae61aa3882

View File

@ -1048,17 +1048,16 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
{
index++;
}
bool con = true;
while (con)
while (true)
{
index++;
if (index + 20 >= buffer.Length)
return null;
if (buffer[index] == 0xFE && (buffer[index - 15] == 0x60 || buffer[index - 15] == 0x61))
con = false;
break;
if (buffer[index] == 0xFE && (buffer[index - 12] == 0x60 || buffer[index - 12] == 0x61))
con = false;
break;
}
int feIndex = index;