changeset 14187:19589e978000

10l fix I hope, reverse if not
author alex
date Sun, 19 Dec 2004 16:53:26 +0000
parents 5053490906c3
children 0180a7f96197
files libmpcodecs/ad_hwac3.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c	Sun Dec 19 16:28:34 2004 +0000
+++ b/libmpcodecs/ad_hwac3.c	Sun Dec 19 16:53:26 2004 +0000
@@ -364,6 +364,8 @@
 #else
   //TODO if fzise is odd, swab doesn't copy the last byte
   swab(indata_ptr, &buf[8], fsize);
+  if (fsize & 1)
+    buf[8+fsize] = indata_ptr[fsize];
 #endif
   memset(&buf[fsize + 8], 0, nr_samples * 2 * 2 - (fsize + 8));