darktable-org/darktable — pull request #693 by LebedevRI (2014-10-11 18:08:50+00:00)
Title: Imageio format png update

For 8-bit, just handle pointers to rows to the libpng and let it strip alpha channel.
Avoids additional buffer copying.

For 16-bit, use malloc and not "png_byte row[6*width];".

I believe this changes to be trivial, so i'll merge this in +24h if no one objects.