avformat/xwma: Use av_malloc_array()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Apr 2015 11:51:03 +0000 (13:51 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Apr 2015 11:51:03 +0000 (13:51 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/xwma.c

index a1f2dc2..683d3d0 100644 (file)
@@ -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);
             }