common/lz.c: improve lz_encode comment

This commit is contained in:
Alon Levy 2012-10-17 15:34:44 +02:00
parent 8543d04cd2
commit be6392a5ad

View File

@ -521,8 +521,9 @@ int lz_encode(LzContext *lz, LzImageType type, int width, int height, int top_do
}
} else {
if (encoder->stride != width * RGB_BYTES_PER_PIXEL[encoder->type]) {
encoder->usr->error(encoder->usr, "stride != width*bytes_per_pixel (rgb) %d %d %d\n",
encoder->stride, width, RGB_BYTES_PER_PIXEL[encoder->type]);
encoder->usr->error(encoder->usr, "stride != width*bytes_per_pixel (rgb) %d != %d * %d (%d)\n",
encoder->stride, width, RGB_BYTES_PER_PIXEL[encoder->type],
encoder->type);
}
}