aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-11 13:51:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-11 13:51:03 +0200
commitd6bcdf0dcdd7711fa0419b8d4baee8316638120f (patch)
treed28d48e2e8f7a143075445d22bf1051a811ddffe /libavformat
parente33355213daf766a0630b757f90edd5942642bed (diff)
downloadffmpeg-d6bcdf0dcdd7711fa0419b8d4baee8316638120f.tar.gz
avformat/xwma: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/xwma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/xwma.c b/libavformat/xwma.c
index a1f2dc224a..683d3d0d4d 100644
--- a/libavformat/xwma.c
+++ b/libavformat/xwma.c
@@ -172,7 +172,7 @@ static int xwma_read_header(AVFormatContext *s)
/* Allocate some temporary storage to keep the dpds data around.
* for processing later on.
*/
- dpds_table = av_malloc(dpds_table_size * sizeof(uint32_t));
+ dpds_table = av_malloc_array(dpds_table_size, sizeof(uint32_t));
if (!dpds_table) {
return AVERROR(ENOMEM);
}