Commit 9c66da51 authored by Michael Niedermayer's avatar Michael Niedermayer

j2kenc: Zero DWT struct on allocation

Should fix fate
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 05fa3f68
......@@ -350,7 +350,7 @@ static int init_tiles(Jpeg2000EncoderContext *s)
for (tilex = 0; tilex < s->numXtiles; tilex++, tileno++){
Jpeg2000Tile *tile = s->tile + tileno;
tile->comp = av_malloc(s->ncomponents * sizeof(Jpeg2000Component));
tile->comp = av_mallocz(s->ncomponents * sizeof(Jpeg2000Component));
if (!tile->comp)
return AVERROR(ENOMEM);
for (compno = 0; compno < s->ncomponents; compno++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment