Browse Source

lavfi/vf_fps: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
tags/n2.3
Lukasz Marek 11 years ago
parent
commit
ce051ceefc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_fps.c

+ 1
- 1
libavfilter/vf_fps.c View 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;


Loading…
Cancel
Save