Skip to content
Snippets Groups Projects
Commit f0552e63 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Luca Barbato
Browse files

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


Keep the structure fields more consistent after cleanup.

Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent e11099db
No related branches found
No related tags found
No related merge requests found
...@@ -1233,6 +1233,7 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) ...@@ -1233,6 +1233,7 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s)
av_freep(&s->tile[tileno].comp); av_freep(&s->tile[tileno].comp);
} }
av_freep(&s->tile); av_freep(&s->tile);
s->numXtiles = s->numYtiles = 0;
} }
static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment