iEliminate backward incompatibility which required empty_output_buffer() to handle cases in which the buffer wasn't 100% full
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3680 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/jpeg/jdatadst.c b/common/jpeg/jdatadst.c
index b874815..a8f6fb0 100644
--- a/common/jpeg/jdatadst.c
+++ b/common/jpeg/jdatadst.c
@@ -82,9 +82,8 @@
{
my_dest_ptr dest = (my_dest_ptr) cinfo->dest;
- if (JFWRITE(dest->outfile, dest->buffer, OUTPUT_BUF_SIZE
- - dest->pub.free_in_buffer) !=
- (size_t) (OUTPUT_BUF_SIZE - dest->pub.free_in_buffer))
+ if (JFWRITE(dest->outfile, dest->buffer, OUTPUT_BUF_SIZE) !=
+ (size_t) OUTPUT_BUF_SIZE)
ERREXIT(cinfo, JERR_FILE_WRITE);
dest->pub.next_output_byte = dest->buffer;