diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 15:04:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 15:04:50 +0200 |
commit | 3a10bf93b5ba7106bb4f791be0fa5e982757b83f (patch) | |
tree | b91ae65ce1d0c881f481ff70e63be3618125a01d /libavdevice | |
parent | b2d1e22c2a5be440d39c42ed713436d7ea6dd0a5 (diff) | |
download | ffmpeg-streaming-3a10bf93b5ba7106bb4f791be0fa5e982757b83f.zip ffmpeg-streaming-3a10bf93b5ba7106bb4f791be0fa5e982757b83f.tar.gz |
avdevice/lavfi: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/lavfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 1ea7ea7..d1904dd 100644 --- 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)); |