[FFmpeg-cvslog] avformat/xwma: Use av_malloc_array()
Michael Niedermayer
git at videolan.org
Sat Apr 11 13:59:22 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr 11 13:51:03 2015 +0200| [d6bcdf0dcdd7711fa0419b8d4baee8316638120f] | committer: Michael Niedermayer
avformat/xwma: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6bcdf0dcdd7711fa0419b8d4baee8316638120f
---
libavformat/xwma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/xwma.c b/libavformat/xwma.c
index a1f2dc2..683d3d0 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);
}
More information about the ffmpeg-cvslog
mailing list