Merge pull request #791 from TsudaKageyu/flac-empty-seektable

Be tolerant of empty FLAC seektable blocks.
This commit is contained in:
Tsuda Kageyu
2017-01-16 01:12:07 +09:00
committed by GitHub
3 changed files with 22 additions and 1 deletions

View File

@ -506,7 +506,9 @@ void FLAC::File::scan()
return;
}
if(blockLength == 0 && blockType != MetadataBlock::Padding) {
if(blockLength == 0
&& blockType != MetadataBlock::Padding && blockType != MetadataBlock::SeekTable)
{
debug("FLAC::File::scan() -- Zero-sized metadata block found");
setValid(false);
return;