Commit d15db8e4 authored by Lukasz Marek's avatar Lukasz Marek

lavfi/buffersink: use av_fifo_alloc_array

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent 4d686674
......@@ -246,7 +246,7 @@ static av_cold int common_init(AVFilterContext *ctx)
{
BufferSinkContext *buf = ctx->priv;
buf->fifo = av_fifo_alloc(FIFO_INIT_SIZE*sizeof(AVFilterBufferRef *));
buf->fifo = av_fifo_alloc_array(FIFO_INIT_SIZE, sizeof(AVFilterBufferRef *));
if (!buf->fifo) {
av_log(ctx, AV_LOG_ERROR, "Failed to allocate fifo\n");
return AVERROR(ENOMEM);
......
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