Commit a5ec6399 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

JpegCompressor: Fix horizontal offsets

parent 00875151
......@@ -109,7 +109,7 @@ bool JpegCompressor::compress( const uint8_t* buffer, const std::string& outputF
while ( compInfo.next_scanline < outputHeight )
{
row_pointer[0] = const_cast<uint8_t*>( &buffer[(compInfo.next_scanline + vOffset ) * stride + hOffset] );
row_pointer[0] = const_cast<uint8_t*>( &buffer[(compInfo.next_scanline + vOffset ) * stride + hOffset * bpp()] );
jpeg_write_scanlines(&compInfo, row_pointer, 1);
}
jpeg_finish_compress(&compInfo);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment