aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-23 20:21:42 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-23 20:21:42 +0000
commit3fdee1de316477cfa8cb68a9b1b4a712350e26f6 (patch)
tree9f87ed26a73fa51b52c6c79dc1cd94af6b5f8e2d /src/plugins/Input/mad
parentadc4126d8e52af213db96c3685c1fbbdb588803d (diff)
downloadqmmp-3fdee1de316477cfa8cb68a9b1b4a712350e26f6.tar.gz
qmmp-3fdee1de316477cfa8cb68a9b1b4a712350e26f6.tar.bz2
qmmp-3fdee1de316477cfa8cb68a9b1b4a712350e26f6.zip
fixed null pointer dereference (#923)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7250 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mad')
-rw-r--r--src/plugins/Input/mad/decoder_mad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Input/mad/decoder_mad.cpp b/src/plugins/Input/mad/decoder_mad.cpp
index 5e1f392ca..afebf39ff 100644
--- a/src/plugins/Input/mad/decoder_mad.cpp
+++ b/src/plugins/Input/mad/decoder_mad.cpp
@@ -246,7 +246,7 @@ bool DecoderMAD::findHeader()
{
size_t remaining = 0;
- if (!m_stream.next_frame)
+ if (m_stream.next_frame)
{
remaining = m_stream.bufend - m_stream.next_frame;
memmove (m_input_buf, m_stream.next_frame, remaining);