[trunk] Wrong struct size. Use opj_jp2_v2_t instead

This commit is contained in:
Mathieu Malaterre 2012-05-14 14:51:26 +00:00
parent 1c3273aab2
commit 00558adda8
1 changed files with 1 additions and 1 deletions

View File

@ -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));
if (jp2) {
memset(jp2,0,sizeof(opj_jp2_t));
memset(jp2,0,sizeof(opj_jp2_v2_t));
/* create the J2K codec */
if (! p_is_decoder) {