mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
ZVISION: Add TODO's about the verbosity of the frame decoding overflow warning
This commit is contained in:
parent
d2df3eb24e
commit
0ed7df9a36
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user