changeset 23737:304beddf4700

fix unaligned memory access in asfheader.c, courtesy of Balatoni Denes (dbalatoni AT programozo DOT hu)
author zuxy
date Tue, 10 Jul 2007 02:02:21 +0000
parents b807809ef9f8
children 7f4973dc13c8
files libmpdemux/asfheader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asfheader.c	Mon Jul 09 20:40:47 2007 +0000
+++ b/libmpdemux/asfheader.c	Tue Jul 10 02:02:21 2007 +0000
@@ -95,7 +95,7 @@
   q = outbuf;
   for (i = 0; i < inlen / 2; i++) {
     uint8_t tmp;
-    PUT_UTF8(le2me_16(inbuf[i]), tmp, *q++ = tmp;)
+    PUT_UTF8(AV_RL16(&inbuf[i]), tmp, *q++ = tmp;)
   }
   return outbuf;
 }