[trunk] Wrong struct size. Use opj_jp2_v2_t instead
This commit is contained in:
parent
1c3273aab2
commit
00558adda8
|
@ -3403,7 +3403,7 @@ opj_jp2_v2_t* jp2_create(opj_bool p_is_decoder)
|
||||||
{
|
{
|
||||||
opj_jp2_v2_t *jp2 = (opj_jp2_v2_t*)opj_malloc(sizeof(opj_jp2_v2_t));
|
opj_jp2_v2_t *jp2 = (opj_jp2_v2_t*)opj_malloc(sizeof(opj_jp2_v2_t));
|
||||||
if (jp2) {
|
if (jp2) {
|
||||||
memset(jp2,0,sizeof(opj_jp2_t));
|
memset(jp2,0,sizeof(opj_jp2_v2_t));
|
||||||
|
|
||||||
/* create the J2K codec */
|
/* create the J2K codec */
|
||||||
if (! p_is_decoder) {
|
if (! p_is_decoder) {
|
||||||
|
|
Loading…
Reference in New Issue