diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-02-12 08:42:41 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-02-12 08:42:41 +0000 |
| commit | 8a090df03389ae9af82efc66af114dc504966d8e (patch) | |
| tree | 4a1a0ba27e91a5667a27850c64972c0b5f5b783f /src/plugins/Input/mad | |
| parent | 32fcc71de971bc4c1c2e013bd9cbfe16241873bf (diff) | |
| download | qmmp-8a090df03389ae9af82efc66af114dc504966d8e.tar.gz qmmp-8a090df03389ae9af82efc66af114dc504966d8e.tar.bz2 qmmp-8a090df03389ae9af82efc66af114dc504966d8e.zip | |
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
Diffstat (limited to 'src/plugins/Input/mad')
| -rw-r--r-- | src/plugins/Input/mad/decodermadfactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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)) { |
