Skip to content

Change in pnmtoimage if image->comps[].data is NULL - #1153

Open
szukw000 wants to merge 1 commit into
uclouvain:masterfrom
szukw000:changes-in-imagetopnm
Open

szukw000 wants to merge 1 commit into
uclouvain:masterfrom
szukw000:changes-in-imagetopnm

Conversation

@szukw000

Copy link
Copy Markdown
Contributor

Cnf. #1152.
Correction in opj_decompress.c for input filename without extension.

@szukw000

Copy link
Copy Markdown
Contributor Author

@rouault ,
this PR handles two cases:

  1. where image->comps[].data is NULL.
  2. where the input filename does not have an extension, e.g. '.j2k' etc .
    The old code simply returns the last 4 signs.
    The case where the filename is shorter than 4 signs is not handled.
    I suppose all opj_compress/opj_decompress functions must be reconsidered.
    winfried

@rouault

rouault commented Oct 15, 2018

Copy link
Copy Markdown
Collaborator

Indentation issue reported by https://travis-ci.org/uclouvain/openjpeg/jobs/440595756

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants