Commit ce051cee authored by Lukasz Marek's avatar Lukasz Marek

lavfi/vf_fps: use av_fifo_alloc_array

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent d15db8e4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment