]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/fmvc.c
vorbisenc: Stop tracking number of samples per frame
[ffmpeg] / libavcodec / fmvc.c
index 2368e95f29c900e9d756de9dc317cd9969ad1b6a..74e9bdd8a088ddd66c9557cad4524928fcca6bee 100644 (file)
@@ -596,8 +596,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
     s->bpp = avctx->bits_per_coded_sample >> 3;
     s->buffer_size = avctx->width * avctx->height * 4;
     s->pbuffer_size = avctx->width * avctx->height * 4;
-    s->buffer = av_malloc(s->buffer_size);
-    s->pbuffer = av_malloc(s->pbuffer_size);
+    s->buffer = av_mallocz(s->buffer_size);
+    s->pbuffer = av_mallocz(s->pbuffer_size);
     if (!s->buffer || !s->pbuffer)
         return AVERROR(ENOMEM);