psdump
psdump copied to clipboard
version could be 1 or 2 for Pixel Aspect Ratio in image_resource.c
According to http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/ version could be 1 or 2 for Pixel Aspect Ratio in image_resource.c
checking for 1 only results in a coredump for me.
I fixed it like this
// (Photoshop CS) Pixel Aspect Ratio
case 1064:
// 4 bytes (version = 1)
psd_int val = psd_stream_get_int(context) ;
psd_assert((val == 2) || (val == 1));