[MPlayer-cvslog] r23757 - trunk/libmpdemux/asfheader.c
zuxy
subversion at mplayerhq.hu
Tue Jul 10 04:02:21 CEST 2007
Author: zuxy
Date: Tue Jul 10 04:02:21 2007
New Revision: 23757
Log:
fix unaligned memory access in asfheader.c, courtesy of Balatoni Denes
(dbalatoni AT programozo DOT hu)
Modified:
trunk/libmpdemux/asfheader.c
Modified: trunk/libmpdemux/asfheader.c
==============================================================================
--- trunk/libmpdemux/asfheader.c (original)
+++ trunk/libmpdemux/asfheader.c Tue Jul 10 04:02:21 2007
@@ -95,7 +95,7 @@ static char* get_ucs2str(const uint16_t*
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;
}
More information about the MPlayer-cvslog
mailing list