summaryrefslogtreecommitdiff
path: root/jdatasrc.c
diff options
context:
space:
mode:
authorThomas G. Lane <tgl@netcom.com>1994-12-07 00:00:00 +0000
committerDRC <information@libjpeg-turbo.org>2015-07-29 15:29:17 -0500
commit9ba2f5ed3649fb6de83d3c16e4dba1443aaca983 (patch)
treecfd9b7b2ec501c4243645b4a1d1e3448b3f477a7 /jdatasrc.c
parent36a4ccccd33f5cc9df62949554af87129ced7f84 (diff)
The Independent JPEG Group's JPEG software v5a
Diffstat (limited to 'jdatasrc.c')
-rw-r--r--jdatasrc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/jdatasrc.c b/jdatasrc.c
index a37bdd2..8c4ac0b 100644
--- a/jdatasrc.c
+++ b/jdatasrc.c
@@ -137,6 +137,9 @@ skip_input_data (j_decompress_ptr cinfo, long num_bytes)
while (num_bytes > (long) src->pub.bytes_in_buffer) {
num_bytes -= (long) src->pub.bytes_in_buffer;
(void) fill_input_buffer(cinfo);
+ /* note we assume that fill_input_buffer will never return FALSE,
+ * so suspension need not be handled.
+ */
}
src->pub.next_input_byte += (size_t) num_bytes;
src->pub.bytes_in_buffer -= (size_t) num_bytes;