mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
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:
parent
3c78c4cfc9
commit
86c0428475
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user