From 9f2c01862bd5b9d058d51a366fb656b1992f5ae0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 3 Jan 2016 09:05:23 +0000 Subject: fixed build regression (#834) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5969 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mpc/decoder_mpc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/Input/mpc') diff --git a/src/plugins/Input/mpc/decoder_mpc.cpp b/src/plugins/Input/mpc/decoder_mpc.cpp index 6383a5a66..0ce46ced4 100644 --- a/src/plugins/Input/mpc/decoder_mpc.cpp +++ b/src/plugins/Input/mpc/decoder_mpc.cpp @@ -205,7 +205,7 @@ qint64 DecoderMPC::read(unsigned char *audio, qint64 maxSize) MPC_SAMPLE_FORMAT buffer[MPC_DECODER_BUFFER_LENGTH]; m_len = mpc_decoder_decode (&data()->decoder, buffer, &vbrAcc, &vbrUpd); m_len *= data()->info.channels; - memcpy(audio, buffer, qMin((qint64)m_len * sizeof(float), maxSize)); + memcpy(audio, buffer, qMin(qint64(m_len * sizeof(float)), maxSize)); m_bitrate = vbrUpd * data()->info.sample_freq / 1152000; #else mpc_frame_info frame; @@ -225,7 +225,7 @@ qint64 DecoderMPC::read(unsigned char *audio, qint64 maxSize) else { m_len = frame.samples * data()->info.channels; - memcpy(audio, buffer, qMin((qint64)m_len * sizeof(float), maxSize)); + memcpy(audio, buffer, qMin(qint64(m_len * sizeof(float)), maxSize)); } } m_bitrate = frame.bits * data()->info.sample_freq / 1152000; -- cgit v1.2.3-13-gbd6f