mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
examples/transcoding: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b176320545
commit
9b467d3cd5
@ -334,7 +334,7 @@ static int init_filters(void)
|
||||
const char *filter_spec;
|
||||
unsigned int i;
|
||||
int ret;
|
||||
filter_ctx = av_malloc(sizeof(FilteringContext) * ifmt_ctx->nb_streams);
|
||||
filter_ctx = av_malloc_array(ifmt_ctx->nb_streams, sizeof(*filter_ctx));
|
||||
if (!filter_ctx)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user