mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 19:49:56 +00:00
avformat/wtvenc: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e0d8ff5ef1
commit
e33355213d
@ -112,7 +112,7 @@ typedef struct {
|
||||
static void add_serial_pair(WtvSyncEntry ** list, int * count, int64_t serial, int64_t value)
|
||||
{
|
||||
int new_count = *count + 1;
|
||||
WtvSyncEntry *new_list = av_realloc(*list, new_count * sizeof(WtvSyncEntry));
|
||||
WtvSyncEntry *new_list = av_realloc_array(*list, new_count, sizeof(WtvSyncEntry));
|
||||
if (!new_list)
|
||||
return;
|
||||
new_list[*count] = (WtvSyncEntry){serial, value};
|
||||
|
Loading…
Reference in New Issue
Block a user