Fixed envelope main section empty error

This commit is contained in:
Takeshi Yokemura
2022-02-12 17:01:11 +09:00
parent 68253130fa
commit 1d3c91d6e1
4 changed files with 9 additions and 9 deletions

View File

@ -438,9 +438,6 @@ FrameSequence FrameSequenceParser::parse (const String& input,
{
return fs;
}
if (sequence.size() == 0) {
*error = kParseWarningPreRepeatSegmentEmpty;
}
fs.sequence = sequence;
fs.sequence.reserve (1000);
@ -470,6 +467,10 @@ FrameSequence FrameSequenceParser::parse (const String& input,
// Set repeatEndIndex according to current working frameSequence length
fs.releaseSequenceStartIndex = (int)fs.sequence.size();
}
if (fs.sequence.size() == 0) {
*error = kParseErrorPreReleaseSegmentEmpty;
}
if (hasRelease) // If release exists:
{