Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e56b7e6c authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Use bswap_16 instead of swap16, because swap16 is not available in glibc

parent 7040ce78
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
        }