X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Featgv.c;h=f204a1344cdccc6222660436eb082f4d2165589c;hb=4b8bc6d2b0a94c850f7d807a7da21804f1f9c1c7;hp=952ebb3c34cdcc9b7b0e646f837804a3590978d5;hpb=43f925536844c6a7f24f104a4cc540d860c88ae0;p=ffmpeg diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c index 952ebb3c34c..f204a1344cd 100644 --- a/libavcodec/eatgv.c +++ b/libavcodec/eatgv.c @@ -311,7 +311,7 @@ static int tgv_decode_frame(AVCodecContext *avctx, frame->pict_type = AV_PICTURE_TYPE_I; if (!s->frame_buffer && - !(s->frame_buffer = av_malloc(s->width * s->height))) + !(s->frame_buffer = av_mallocz(s->width * s->height))) return AVERROR(ENOMEM); if (unpack(buf, buf_end, s->frame_buffer, s->avctx->width, s->avctx->height) < 0) {