mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
No variable is need for infinite loop with break point
This commit is contained in:
parent
1c4932ba8d
commit
ae61aa3882
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user