[FFmpeg-cvslog] avcodec/jpeg2000dec: Zero code and quant style
Michael Niedermayer
git at videolan.org
Thu Oct 3 19:10:36 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 31 03:35:49 2013 +0200| [fcd19d6c8db514b017662166d014ac8560fbe8f5] | committer: Michael Niedermayer
avcodec/jpeg2000dec: Zero code and quant style
This prevents future frames from using half initialized/inconsistent
structures
Fixes assertion failure
Fixes Ticket2897
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcd19d6c8db514b017662166d014ac8560fbe8f5
---
libavcodec/jpeg2000dec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 9fc86d6..26cacd5 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -1364,6 +1364,8 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s)
}
}
av_freep(&s->tile);
+ memset(s->codsty, 0, sizeof(s->codsty));
+ memset(s->qntsty, 0, sizeof(s->qntsty));
s->numXtiles = s->numYtiles = 0;
}
More information about the ffmpeg-cvslog
mailing list