]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/eatgv.c
Merge commit 'fc6a3ef40d34ce8443ae57c2452f3f273d7d4891'
[ffmpeg] / libavcodec / eatgv.c
index 952ebb3c34cdcc9b7b0e646f837804a3590978d5..f204a1344cdccc6222660436eb082f4d2165589c 100644 (file)
@@ -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) {