From: StefanBruens Date: Tue, 30 Apr 2019 02:10:57 +0000 (+0200) Subject: Clear valid flag for invalid Speex files X-Git-Tag: v1.12-beta-1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86c042847571db0bdfa8dbb6093a30d4ff03be11;p=taglib 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. --- diff --git a/taglib/ogg/speex/speexfile.cpp b/taglib/ogg/speex/speexfile.cpp index b3c8a636..394cb17b 100644 --- a/taglib/ogg/speex/speexfile.cpp +++ b/taglib/ogg/speex/speexfile.cpp @@ -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; }