Skip to content

version could be 1 or 2 for Pixel Aspect Ratio in image_resource.c #3

@v1nce

Description

@v1nce

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));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions