mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
j2kenc: Zero DWT struct on allocation
Should fix fate Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
05fa3f6802
commit
9c66da517f
@ -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++){
|
||||
|
Loading…
Reference in New Issue
Block a user