git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d68667
)
lavfi/buffersink: use av_fifo_alloc_array
author
Lukasz Marek
<lukasz.m.luki2@gmail.com>
Sun, 11 May 2014 03:18:38 +0000
(
05:18
+0200)
committer
Lukasz Marek
<lukasz.m.luki2@gmail.com>
Mon, 19 May 2014 22:00:44 +0000
(
00:00
+0200)
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
libavfilter/buffersink.c
patch
|
blob
|
history
diff --git
a/libavfilter/buffersink.c
b/libavfilter/buffersink.c
index
345af77
..
525f97b
100644
(file)
--- 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);