Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 17:35:14 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 17:35:14 +0400
commit9b467d3cd593c18dc0f8dac108da6a8c39ea2bb3 (patch)
tree9824244a9d8763e2a90ed8c4ff12738f1c7a6669 /doc/examples
parentb1763205457f59ae96c31119e2f5377071ff3e71 (diff)
examples/transcoding: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/transcoding.c2
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);