mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 04:12:14 +00:00
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>
This commit is contained in:
parent
e11099db20
commit
f0552e63a6
@ -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…
Reference in New Issue
Block a user