Diff of /branches/AudioEngine/xbmc/cores/AudioEngine/AEPackIEC958.cpp [r35729] .. [r35730]  Maximize  Restore

  Switch to side-by-side view

--- a/branches/AudioEngine/xbmc/cores/AudioEngine/AEPackIEC958.cpp
+++ b/branches/AudioEngine/xbmc/cores/AudioEngine/AEPackIEC958.cpp
@@ -52,8 +52,8 @@
   SwapEndian((uint16_t*)packet->m_data, (uint16_t*)data, size >> 1);
 #endif
 
-  memset(packet->m_data + size, 0, AC3_FRAME_SIZE - size);
-  return AC3_FRAME_SIZE;
+  memset(packet->m_data + size, 0, OUT_FRAMESTOBYTES(AC3_FRAME_SIZE) - size);
+  return OUT_FRAMESTOBYTES(AC3_FRAME_SIZE);
 }
 
 int CAEPackIEC958::PackEAC3(uint8_t *data, unsigned int size, uint8_t *dest)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks