Skip to content

Commit 40a98e1

Browse files
committed
Better implementation
1 parent 91376f4 commit 40a98e1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

ATL/AudioData/IO/VorbisTag.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,7 @@ protected override bool read(Stream source, ReadTagParams readTagParams)
365365
for (int i = 0; i < nbRead; i++)
366366
{
367367
if (stringData[i] != 0x3D) continue; // '=' character
368-
369-
equalsIndex = i;
370-
if (equalsIndex >= size)
371-
{
372-
equalsIndex = -1; // Value without key
373-
tagIdBuilder.Clear();
374-
}
368+
if (nbBuffered + equalsIndex < size) equalsIndex = i;
375369

376370
break;
377371
}

0 commit comments

Comments
 (0)