From 8a090df03389ae9af82efc66af114dc504966d8e Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 12 Feb 2017 08:42:41 +0000 Subject: mad: fixed mp3 wav detection git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7036 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decodermadfactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/Input') diff --git a/src/plugins/Input/mad/decodermadfactory.cpp b/src/plugins/Input/mad/decodermadfactory.cpp index 3b907479d..5c69c61b8 100644 --- a/src/plugins/Input/mad/decodermadfactory.cpp +++ b/src/plugins/Input/mad/decodermadfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2016 by Ilya Kotov * + * Copyright (C) 2008-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -69,8 +69,8 @@ bool DecoderMADFactory::canDecode(QIODevice *input) const if (!memcmp(buf, "FLV", 3)) //skip Macromedia Flash Video return false; - if (!memcmp(buf + 8, "WAVE", 4) && !memcmp(buf + 20, "U" ,1)) - return true; + if (!memcmp(buf + 8, "WAVE", 4)) + return !memcmp(buf + 20, "U" ,1); if(!memcmp(buf, "ID3", 3)) { -- cgit v1.2.3-13-gbd6f