diff options
Diffstat (limited to 'src/plugins')
| -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)) { |
