diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-01 14:33:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-01 14:41:46 +0200 |
commit | 9054e725296843c28a85bcd978a0ee7fc93de37f (patch) | |
tree | 93f8856745ad669d52e22db1c87dabb33c8ef640 | |
parent | 1fb52bf9207689f35b2b5ba58b9938d25df9c82e (diff) | |
download | ffmpeg-9054e725296843c28a85bcd978a0ee7fc93de37f.tar.gz |
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>
-rw-r--r-- | libavcodec/jpeg2000dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 9822900b02..aa67ebe719 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -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) |