OpenImageIO/oiio — pull request #930 by lgritz (2014-08-07 00:12:57+00:00)
Title: Bug fix: oiiotool color conversion botched inputs with MIP levels.

It should have been looping over the number of subimages and mip levels in the destination image, not the source image, because if the -a flag is not used, the dst image will be constructed with fewer mip levels (i.e. 1) than the source. Looping over the source's count will run off the end of the list.

You can see how I cut-and-pasted the guts of colorconvert (including this bug) to form ociolook and ociodisplay. Oops.

The bug is only symptomatic if the input image is multi-image or MIP-mapped. So was discovered upon color converting a texture. I guess that hasn't come up before, usually color conversion is done before making the texture map as the last step.