From 86c042847571db0bdfa8dbb6093a30d4ff03be11 Mon Sep 17 00:00:00 2001 From: StefanBruens Date: Tue, 30 Apr 2019 04:10:57 +0200 Subject: [PATCH] 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. --- taglib/ogg/speex/speexfile.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.40.0