Merge branch 'master' of github.com:jcupitt/libvips

This commit is contained in:
John Cupitt 2017-08-25 10:55:35 +01:00
commit 836b6c943b

View File

@ -840,7 +840,7 @@ fill_input_buffer (j_decompress_ptr cinfo)
InputBuffer *src = (InputBuffer *) cinfo->src;
if (src->start_of_file) {
if (src->start_of_file && src->len > 0) {
src->pub.next_input_byte = src->buf;
src->pub.bytes_in_buffer = src->len;
src->start_of_file = FALSE;