[FFmpeg-cvslog] jpeg2000: Reset s->numX/Ytiles on tile deallocation

Michael Niedermayer git at videolan.org
Wed Jul 3 16:42:41 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul  1 10:01:36 2013 +0200| [f0552e63a669853ac7cd76f201356b8ea1608d6b] | committer: Luca Barbato

jpeg2000: Reset s->numX/Ytiles on tile deallocation

Keep the structure fields more consistent after cleanup.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f0552e63a669853ac7cd76f201356b8ea1608d6b
---

 libavcodec/jpeg2000dec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 589cbc1..db7a0c8 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)



More information about the ffmpeg-cvslog mailing list