From 6ab94303b9f73c244dbd1eb321a65047340f6de0 Mon Sep 17 00:00:00 2001 From: aquanull Date: Mon, 13 May 2013 16:20:04 +0800 Subject: [PATCH] av_get_default_channel_layout returns int64_t And one less signed/unsigned comparison warning. --- Core/HLE/sceAtrac.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceAtrac.cpp b/Core/HLE/sceAtrac.cpp index 0c66eb45f8..8ff9c098a0 100644 --- a/Core/HLE/sceAtrac.cpp +++ b/Core/HLE/sceAtrac.cpp @@ -340,7 +340,7 @@ void Atrac::Analyze() bool bfoundData = false; while ((first.filesize - offset) >= 8 && !bfoundData) { int chunkMagic = Memory::Read_U32(first.addr + offset); - int chunkSize = Memory::Read_U32(first.addr + offset + 4); + u32 chunkSize = Memory::Read_U32(first.addr + offset + 4); offset += 8; if (chunkSize > first.filesize - offset) break; @@ -868,8 +868,8 @@ int __AtracSetContext(Atrac *atrac, u32 buffer, u32 bufferSize) } int wanted_channels = atrac->atracOutputChannels; - int wanted_channel_layout = av_get_default_channel_layout(wanted_channels); - int dec_channel_layout = av_get_default_channel_layout(atrac->atracChannels); + int64_t wanted_channel_layout = av_get_default_channel_layout(wanted_channels); + int64_t dec_channel_layout = av_get_default_channel_layout(atrac->atracChannels); atrac->pSwrCtx = swr_alloc_set_opts