Browse Source

jpeg2000: Reset s->numX/Ytiles on tile deallocation

Keep the structure fields more consistent after cleanup.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.0
Michael Niedermayer Luca Barbato 12 years ago
parent
commit
f0552e63a6
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/jpeg2000dec.c

+ 1
- 0
libavcodec/jpeg2000dec.c View File

@@ -1233,6 +1233,7 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s)
av_freep(&s->tile[tileno].comp);
}
av_freep(&s->tile);
s->numXtiles = s->numYtiles = 0;
}

static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)


Loading…
Cancel
Save