From e5290823697d93f96cde6d59b3d66b1354696dee Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 11 Sep 2013 13:34:25 +0200 Subject: [PATCH] avformat/matroskadec: use av_realloc_array() Signed-off-by: Michael Niedermayer --- libavformat/matroskadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 50cb51bfa5..a6cc7c98a6 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -950,7 +950,7 @@ static int ebml_parse_elem(MatroskaDemuxContext *matroska, data = (char *)data + syntax->data_offset; if (syntax->list_elem_size) { EbmlList *list = data; - newelem = av_realloc(list->elem, (list->nb_elem+1)*syntax->list_elem_size); + newelem = av_realloc_array(list->elem, list->nb_elem+1, syntax->list_elem_size); if (!newelem) return AVERROR(ENOMEM); list->elem = newelem;