Commit 9054e725 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1fb52bf9
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment