summaryrefslogtreecommitdiffstats
path: root/common/rfb/TightDecoder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/TightDecoder.cxx')
-rw-r--r--common/rfb/TightDecoder.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/common/rfb/TightDecoder.cxx b/common/rfb/TightDecoder.cxx
index 86bb0069..3a1254a2 100644
--- a/common/rfb/TightDecoder.cxx
+++ b/common/rfb/TightDecoder.cxx
@@ -173,11 +173,6 @@ bool TightDecoder::doRectsConflict(const Rect& rectA,
if (((comp_ctl_a & 0x0f) & (comp_ctl_b & 0x0f)) != 0)
return true;
- // We have a shared JpegDecompressor, so one at a time
- if (((comp_ctl_a >> 4) == tightJpeg) &&
- ((comp_ctl_b >> 4) == tightJpeg))
- return true;
-
return false;
}
@@ -229,6 +224,8 @@ void TightDecoder::decodeRect(const Rect& r, const void* buffer,
int stride;
rdr::U8 *buf;
+ JpegDecompressor jd;
+
assert(buflen >= 4);
memcpy(&len, bufptr, 4);