OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2d1e22
)
avdevice/lavfi: Use av_malloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 7 Jun 2014 13:04:50 +0000
(15:04 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 7 Jun 2014 13:04:50 +0000
(15:04 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/lavfi.c
patch
|
blob
|
history
diff --git
a/libavdevice/lavfi.c
b/libavdevice/lavfi.c
index
1ea7ea7
..
d1904dd
100644
(file)
--- a/
libavdevice/lavfi.c
+++ b/
libavdevice/lavfi.c
@@
-211,7
+211,7
@@
av_cold static int lavfi_read_header(AVFormatContext *avctx)
}
/* create a sink for each output and connect them to the graph */
- lavfi->sinks = av_malloc
(sizeof(AVFilterContext *) * avctx->nb_streams
);
+ lavfi->sinks = av_malloc
_array(avctx->nb_streams, sizeof(AVFilterContext *)
);
if (!lavfi->sinks)
FAIL(AVERROR(ENOMEM));