]> granicus.if.org Git - taglib/commitdiff
Clear valid flag for invalid Speex files
authorStefanBruens <stefan.bruens@rwth-aachen.de>
Tue, 30 Apr 2019 02:10:57 +0000 (04:10 +0200)
committerScott Wheeler <scott@directededge.com>
Tue, 10 Sep 2019 09:44:21 +0000 (11:44 +0200)
This matches the corresponding code in vorbisfile.cpp, opusfile.cpp and flagfile.cpp, and fixes taglib/taglib#902.

taglib/ogg/speex/speexfile.cpp

index b3c8a6362703212b2448aa3138e6a24fab749390..394cb17be2010a098b27c9fc8d5f599c5ab5157a 100644 (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;
   }