From 2faa2a81d95386298aa5a41b9d75a1f0b3a1f077 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 3 May 2010 12:25:09 +0000 Subject: fixed flv playback git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1709 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decodermadfactory.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/Input/mad/decodermadfactory.cpp') diff --git a/src/plugins/Input/mad/decodermadfactory.cpp b/src/plugins/Input/mad/decodermadfactory.cpp index 3e38cb4b0..e230b80c9 100644 --- a/src/plugins/Input/mad/decodermadfactory.cpp +++ b/src/plugins/Input/mad/decodermadfactory.cpp @@ -64,6 +64,9 @@ bool DecoderMADFactory::canDecode(QIODevice *input) const if (input->peek(buf,sizeof(buf)) == sizeof(buf)) { + if(!memcmp(buf, "FLV", 3)) //skip flv files + return false; + struct mad_stream stream; struct mad_header header; int dec_res; -- cgit v1.2.3-13-gbd6f