diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-01 10:01:36 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-07-02 20:05:48 +0200 |
commit | f0552e63a669853ac7cd76f201356b8ea1608d6b (patch) | |
tree | 26296c1a65e8ace82d2de5fadbc550e4a4b86d85 /libavcodec | |
parent | e11099db203c46ddeb9ac5707a824c8ae01ee8f4 (diff) | |
download | ffmpeg-f0552e63a669853ac7cd76f201356b8ea1608d6b.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-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 589cbc12b1..db7a0c89ba 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -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) |