jpeg2000: make sure s->numXtiles / s->numYtiles are reset when tile is deallocated

This keeps the structure fields more consistent after cleanup

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-01 14:33:34 +02:00
parent 1fb52bf920
commit 9054e72529

View File

@ -1155,6 +1155,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)