VIDEO: Fix uint usage

unisgned int is guaranteed to be at least 16 bits not more
This commit is contained in:
Le Philousophe 2022-01-08 12:37:02 +01:00
parent c6383c472e
commit 97b474e78a

View File

@ -291,7 +291,7 @@ void HNMDecoder::HNM4VideoTrack::decodeInterframe(
uint16 width = _surface.w;
bool eop = false;
uint currentPos = 0;
uint32 currentPos = 0;
while (!eop) {
if (size < 1) {
@ -412,7 +412,7 @@ void HNMDecoder::HNM4VideoTrack::decodeInterframeA(
uint16 width = _surface.w;
bool eop = false;
uint currentPos = 0;
uint32 currentPos = 0;
while (!eop) {
if (size < 1) {
@ -500,7 +500,7 @@ void HNMDecoder::HNM4VideoTrack::decodeInterframeA(
void HNMDecoder::HNM4VideoTrack::decodeIntraframe(Common::SeekableReadStream *stream, uint32 size) {
Image::HLZDecoder::decodeFrameInPlace(*stream, size, _frameBufferC);
memcpy(_frameBufferP, _frameBufferC, (uint)_surface.w * (uint)_surface.h);
memcpy(_frameBufferP, _frameBufferC, (uint32)_surface.w * (uint32)_surface.h);
}
void HNMDecoder::HNM4VideoTrack::presentFrame(uint16 flags) {