summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:16 +0800
committerJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-14 16:32:46 +0800
commit5cfe1d90207a7407f40b783722d8bb9f89608b6b (patch)
treed34d9f2c078ddebee458a505a2adf5bf15ec4bdf /media
parent088685a828f7e6477e88c412a56508b474ebe8b4 (diff)
downloaduxp-5cfe1d90207a7407f40b783722d8bb9f89608b6b.tar.gz
Issue #1542 - [mtransport] Fix unaligned memory allocation in r_memory
Unaligend memory access can't work on RISC.
Diffstat (limited to 'media')
-rw-r--r--media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c b/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c
index a5c709d413..e9d001cec1 100644
--- a/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c
+++ b/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c
@@ -51,7 +51,7 @@ typedef struct r_malloc_chunk_ {
#endif
UCHAR type;
UINT4 size;
- UCHAR memory[1];
+ UINT8 memory[1];
} r_malloc_chunk;
#define CHUNK_MEMORY_OFFSET offsetof(struct r_malloc_chunk_, memory)