summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2010-02-09 07:40:10 -0800
committerMarco Nelissen <marcone@google.com>2010-02-09 07:40:51 -0800
commit569e7f1b1444194d1aca5a0b23de154565ba12da (patch)
tree870c532122554441eae149fb8a4dfb8dec646cde
parent4c23b7d543cd95250e766cef7558d0f4c941ddcb (diff)
downloadframeworks_av-569e7f1b1444194d1aca5a0b23de154565ba12da.zip
frameworks_av-569e7f1b1444194d1aca5a0b23de154565ba12da.tar.gz
frameworks_av-569e7f1b1444194d1aca5a0b23de154565ba12da.tar.bz2
Use bswap_16 instead of swap16, because swap16 is not available in glibc
-rw-r--r--media/libstagefright/id3/ID3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/id3/ID3.cpp b/media/libstagefright/id3/ID3.cpp
index e022bb0..16a2a10 100644
--- a/media/libstagefright/id3/ID3.cpp
+++ b/media/libstagefright/id3/ID3.cpp
@@ -24,7 +24,7 @@
#include <media/stagefright/MediaDebug.h>
#include <media/stagefright/Utils.h>
#include <utils/String8.h>
-#include <sys/endian.h>
+#include <byteswap.h>
namespace android {
@@ -348,7 +348,7 @@ void ID3::Iterator::getString(String8 *id) const {
// endianness marker doesn't match host endianness, convert
framedatacopy = new char16_t[len];
for (int i = 0; i < len; i++) {
- framedatacopy[i] = swap16(framedata[i]);
+ framedatacopy[i] = bswap_16(framedata[i]);
}
framedata = framedatacopy;
}