diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-05-19 21:07:05 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-05-21 11:34:22 +0200 |
commit | 186819080baea53410ae8d8100179a3874ac1e32 (patch) | |
tree | ddc4371f612a76114562f4a890a4c3ac3b3bfea6 /common/rfb/JpegCompressor.cxx | |
parent | e9425ac04d70481f7cb168a19bcbc47728f838c7 (diff) | |
download | tigervnc-186819080baea53410ae8d8100179a3874ac1e32.tar.gz tigervnc-186819080baea53410ae8d8100179a3874ac1e32.zip |
Simplify stream availability handling
Just have a simply number of bytes argument to avoid a lot of
complexity.
Diffstat (limited to 'common/rfb/JpegCompressor.cxx')
-rw-r--r-- | common/rfb/JpegCompressor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/JpegCompressor.cxx b/common/rfb/JpegCompressor.cxx index a4af92fa..4cb35a47 100644 --- a/common/rfb/JpegCompressor.cxx +++ b/common/rfb/JpegCompressor.cxx @@ -95,7 +95,7 @@ JpegEmptyOutputBuffer(j_compress_ptr cinfo) JpegCompressor *jc = dest->instance; jc->setptr(jc->getend()); - jc->overrun(jc->getend() - jc->getstart(), 1); + jc->overrun(jc->getend() - jc->getstart()); dest->pub.next_output_byte = jc->getptr(); dest->pub.free_in_buffer = jc->avail(); |