Browse Source

lavfi/buffersink: 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
d15db8e413
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/buffersink.c

+ 1
- 1
libavfilter/buffersink.c View File

@@ -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);


Loading…
Cancel
Save