Clear valid flag for invalid Speex files

This matches the corresponding code in vorbisfile.cpp, opusfile.cpp and flagfile.cpp, and fixes taglib/taglib#902.
This commit is contained in:
StefanBruens 2019-04-30 04:10:57 +02:00 committed by Scott Wheeler
parent 3c78c4cfc9
commit 86c0428475

View File

@ -131,6 +131,7 @@ void Speex::File::read(bool readProperties)
if(!speexHeaderData.startsWith("Speex ")) {
debug("Speex::File::read() -- invalid Speex identification header");
setValid(false);
return;
}