fixed: this memcpy in CAudioDecoder should be a memmove
authorbobo1on1 <bob-nospam-@xbmc.org>
Thu, 3 Feb 2011 19:36:57 +0000 (20:36 +0100)
committertheuni <theuni-nospam-@xbmc.org>
Fri, 4 Feb 2011 18:10:11 +0000 (13:10 -0500)
(cherry picked from commit 5b8046cdab7a1c1e9d8daf0f0360269eeffb1f5a)

xbmc/cores/paplayer/AudioDecoder.cpp

index 71ee35c..6780ab4 100644 (file)
@@ -155,7 +155,7 @@ void *CAudioDecoder::GetData(unsigned int size)
   if (m_gaplessBufferSize > size)
   {
     memcpy(m_outputBuffer, m_gaplessBuffer, size*sizeof(float));
-    memcpy(m_gaplessBuffer, m_gaplessBuffer + size, (m_gaplessBufferSize - size)*sizeof(float));
+    memmove(m_gaplessBuffer, m_gaplessBuffer + size, (m_gaplessBufferSize - size)*sizeof(float));
     m_gaplessBufferSize -= size;
     return m_outputBuffer;
   }