Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opj_image vs free #146

Closed
gcode-importer opened this issue May 14, 2012 · 1 comment
Closed

opj_image vs free #146

gcode-importer opened this issue May 14, 2012 · 1 comment

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 146

In the following patch:

http://code.google.com/p/openjpeg/source/detail?r=1659#

we are doing:

11832       -       p_j2k->m_private_image = p_image;
12092   +       p_j2k->m_private_image = opj_image_create0();
12093   +       opj_copy_image_header(p_image, p_j2k->m_private_image);
12094   +   
12095   +       // TODO_MSD: Find a better way
12096   +       if (p_image->comps) {
12097   +           OPJ_UINT32 it_comp;
12098   +           for (it_comp = 0 ; it_comp < p_image->numcomps; it_comp++) {
12099   +               if (p_image->comps[it_comp].data) {
12100   +                   p_j2k->m_private_image->comps[it_comp].data =p_image->comps[it_comp].data;
12101   +                   p_image->comps[it_comp].data = NULL;
12102   +   
12103   +               }
12104   +           }
12105   +       }


This should be fixed.

Reported by malaterre on 2012-05-14 07:25:51

@gcode-importer
Copy link
Author

I cannot remember what should have been done in the first place. closing for now.

Reported by malaterre on 2014-02-25 16:06:46

  • Status changed: WontFix

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

No branches or pull requests

2 participants