lavfi/vf_fps: use av_fifo_alloc_array
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sun, 11 May 2014 03:20:44 +0000 (05:20 +0200)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Mon, 19 May 2014 22:00:44 +0000 (00:00 +0200)
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
libavfilter/vf_fps.c

index ad7297a..a38633d 100644 (file)
@@ -79,7 +79,7 @@ static av_cold int init(AVFilterContext *ctx)
 {
     FPSContext *s = ctx->priv;
 
-    if (!(s->fifo = av_fifo_alloc(2*sizeof(AVFrame*))))
+    if (!(s->fifo = av_fifo_alloc_array(2, sizeof(AVFrame*))))
         return AVERROR(ENOMEM);
 
     s->first_pts    = AV_NOPTS_VALUE;