[master] Imported from libpng-1.6.1.tar

This commit is contained in:
Glenn Randers-Pehrson
2013-03-27 20:31:36 -05:00
parent 0da9cf38cd
commit 41db297e63
111 changed files with 1811 additions and 1342 deletions

View File

@@ -37,7 +37,7 @@ component(png_const_bytep row, png_uint_32 x, unsigned int c,
* bytes wide. Since the row fitted into memory, however, the following must
* work:
*/
png_uint_32 bit_offset_hi = bit_depth * ((x >> 6) * channels + c);
png_uint_32 bit_offset_hi = bit_depth * ((x >> 6) * channels);
png_uint_32 bit_offset_lo = bit_depth * ((x & 0x3f) * channels + c);
row = (png_const_bytep)(((PNG_CONST png_byte (*)[8])row) + bit_offset_hi);