diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-28 02:47:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-28 02:47:25 +0200 |
commit | 9c66da517f3e967895ec830dd5b89262b48873d1 (patch) | |
tree | f05258a57108d1afa0dd85744070444c907a5271 /libavcodec | |
parent | 05fa3f68028d1f714f8038892dded7ea0c401eed (diff) | |
download | ffmpeg-9c66da517f3e967895ec830dd5b89262b48873d1.tar.gz |
j2kenc: Zero DWT struct on allocation
Should fix fate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/j2kenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index da5085694a..906ef61449 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -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++){ |