From 0ed7df9a3632207d65f3aef11d5f07e185484207 Mon Sep 17 00:00:00 2001 From: richiesams Date: Sat, 24 Aug 2013 00:18:02 -0500 Subject: ZVISION: Add TODO's about the verbosity of the frame decoding overflow warning --- engines/zvision/rlf_animation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/zvision') diff --git a/engines/zvision/rlf_animation.cpp b/engines/zvision/rlf_animation.cpp index 5c0a88a18f..905a540924 100644 --- a/engines/zvision/rlf_animation.cpp +++ b/engines/zvision/rlf_animation.cpp @@ -247,6 +247,7 @@ void RlfAnimation::decodeMaskedRunLengthEncoding(int8 *source, int8 *dest, uint3 if (sourceOffset + 1 >= sourceSize) { return; } else if (destOffset + 1 >= destSize) { + // TODO: Make this warning silent or in a high debug level. It happens for almost all frames. warning("Frame decoding overflow\n\tsourceOffset=%u\tsourceSize=%u\n\tdestOffset=%u\tdestSize=%u", sourceOffset, sourceSize, destOffset, destSize); return; } @@ -264,6 +265,7 @@ void RlfAnimation::decodeMaskedRunLengthEncoding(int8 *source, int8 *dest, uint3 if (sourceOffset + 1 >= sourceSize) { return; } else if (destOffset + 1 >= destSize) { + // TODO: Make this warning silent or in a high debug level. It happens for almost all frames. warning("Frame decoding overflow\n\tsourceOffset=%u\tsourceSize=%u\n\tdestOffset=%u\tdestSize=%u", sourceOffset, sourceSize, destOffset, destSize); return; } @@ -290,6 +292,7 @@ void RlfAnimation::decodeSimpleRunLengthEncoding(int8 *source, int8 *dest, uint3 if (sourceOffset + 1 >= sourceSize) { return; } else if (destOffset + 1 >= destSize) { + // TODO: Make this warning silent or in a high debug level. It happens for almost all frames. warning("Frame decoding overflow\n\tsourceOffset=%u\tsourceSize=%u\n\tdestOffset=%u\tdestSize=%u", sourceOffset, sourceSize, destOffset, destSize); return; } @@ -314,6 +317,7 @@ void RlfAnimation::decodeSimpleRunLengthEncoding(int8 *source, int8 *dest, uint3 numberOfSamples += 2; while (numberOfSamples > 0) { if (destOffset + 1 >= destSize) { + // TODO: Make this warning silent or in a high debug level. It happens for almost all frames. warning("Frame decoding overflow\n\tsourceOffset=%u\tsourceSize=%u\n\tdestOffset=%u\tdestSize=%u", sourceOffset, sourceSize, destOffset, destSize); return; } -- cgit v1.2.3