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[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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user