mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avformat/xwma: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e33355213d
commit
d6bcdf0dcd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user