diff options
Diffstat (limited to 'doc/examples/transcoding.c')
-rw-r--r-- | doc/examples/transcoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index 93187fa679..5194de33f4 100644 --- a/doc/examples/transcoding.c +++ b/doc/examples/transcoding.c @@ -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); |