From 384f660efcf6a22f45c6f8ff40a93fcf42cedb44 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 7 Jun 2016 18:38:26 -1000 Subject: [PATCH] Update amuse --- Runtime/Graphics/CMoviePlayer.cpp | 24 ++++++++++++------------ amuse | 2 +- hecl | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Runtime/Graphics/CMoviePlayer.cpp b/Runtime/Graphics/CMoviePlayer.cpp index e5cbda1b5..5ec258049 100644 --- a/Runtime/Graphics/CMoviePlayer.cpp +++ b/Runtime/Graphics/CMoviePlayer.cpp @@ -359,12 +359,12 @@ CMoviePlayer::CMoviePlayer(const char* path, float preLoadSeconds, bool loop, bo /* Read THP header information */ u8 buf[64]; SyncRead(buf, 64); - memcpy(&x28_thpHead, buf, 48); + memmove(&x28_thpHead, buf, 48); x28_thpHead.swapBig(); u32 cur = x28_thpHead.componentDataOffset; SyncSeekRead(buf, 32, ESeekOrigin::Begin, cur); - memcpy(&x58_thpComponents, buf, 20); + memmove(&x58_thpComponents, buf, 20); cur += 20; x58_thpComponents.swapBig(); @@ -374,13 +374,13 @@ CMoviePlayer::CMoviePlayer(const char* path, float preLoadSeconds, bool loop, bo { case THPComponents::Type::Video: SyncSeekRead(buf, 32, ESeekOrigin::Begin, cur); - memcpy(&x6c_videoInfo, buf, 8); + memmove(&x6c_videoInfo, buf, 8); cur += 8; x6c_videoInfo.swapBig(); break; case THPComponents::Type::Audio: SyncSeekRead(buf, 32, ESeekOrigin::Begin, cur); - memcpy(&x74_audioInfo, buf, 12); + memmove(&x74_audioInfo, buf, 12); cur += 12; x74_audioInfo.swapBig(); xf4_25_hasAudio = true; @@ -522,7 +522,7 @@ void CMoviePlayer::MixAudio(s16* out, const s16* in, u32 samples) if (xd4_audioSlot == -1) { if (in) - memcpy(out, in, samples * 4); + memmove(out, in, samples * 4); else memset(out, 0, samples * 4); return; @@ -572,7 +572,7 @@ void CMoviePlayer::MixAudio(s16* out, const s16* in, u32 samples) { /* urde addition: failsafe for buffer overrun */ if (in) - memcpy(out, in, samples * 4); + memmove(out, in, samples * 4); else memset(out, 0, samples * 4); //fprintf(stderr, "dropped %d samples\n", samples); @@ -820,18 +820,18 @@ void CMoviePlayer::DecodeFromRead(const void* data) u8* mappedData = (u8*)tex.Y[0]->map(planeSizeHalf); for (unsigned y=0 ; yunmap(); mappedData = (u8*)tex.Y[1]->map(planeSizeHalf); for (unsigned y=0 ; yunmap(); diff --git a/amuse b/amuse index 8930e005d..117d7046d 160000 --- a/amuse +++ b/amuse @@ -1 +1 @@ -Subproject commit 8930e005df7a528b3d15866d2039e835f566a61d +Subproject commit 117d7046dd5667d75d8ffaa9fd031801c2ec8c9f diff --git a/hecl b/hecl index ea8b603ee..095b8d70c 160000 --- a/hecl +++ b/hecl @@ -1 +1 @@ -Subproject commit ea8b603ee18895d87d4cf477712a8848a73c0212 +Subproject commit 095b8d70c3eb8a282517c6b2c390427c9bcbd242