aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorrichiesams2013-08-24 00:18:02 -0500
committerrichiesams2013-08-24 00:23:44 -0500
commit0ed7df9a3632207d65f3aef11d5f07e185484207 (patch)
treea62622f7201d66de853c4768fa3b581e6d69a0c0 /engines
parentd2df3eb24ea68eec5538fac73829b168f747e7a6 (diff)
downloadscummvm-rg350-0ed7df9a3632207d65f3aef11d5f07e185484207.tar.gz
scummvm-rg350-0ed7df9a3632207d65f3aef11d5f07e185484207.tar.bz2
scummvm-rg350-0ed7df9a3632207d65f3aef11d5f07e185484207.zip
ZVISION: Add TODO's about the verbosity of the frame decoding overflow warning
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/rlf_animation.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}