diff options
Diffstat (limited to 'libavfilter/buffersink.c')
-rw-r--r-- | libavfilter/buffersink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 345af77..525f97b 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -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); |