Browse Source

Actually advance the decode/encode buffers

Michael Hansen 14 years ago
parent
commit
7eeafccd57
  1. 3
      Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp

3
Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp

@ -287,6 +287,8 @@ plMipmap *plJPEG::IRead( hsStream *inStream )
jbuffer + (pixel * cinfo.output_components),
cinfo.out_color_components );
}
destp += out_stride;
}
(void) jpeg_finish_decompress(&cinfo);
@ -452,6 +454,7 @@ hsBool plJPEG::IWrite( plMipmap *source, hsStream *outStream )
}
(void) jpeg_write_scanlines( &cinfo, &jbuffer, 1 );
srcp += in_stride;
}
jpeg_finish_compress( &cinfo );

Loading…
Cancel
Save