Commit e3335521 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/wtvenc: Use av_realloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e0d8ff5e
...@@ -112,7 +112,7 @@ typedef struct { ...@@ -112,7 +112,7 @@ typedef struct {
static void add_serial_pair(WtvSyncEntry ** list, int * count, int64_t serial, int64_t value) static void add_serial_pair(WtvSyncEntry ** list, int * count, int64_t serial, int64_t value)
{ {
int new_count = *count + 1; 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) if (!new_list)
return; return;
new_list[*count] = (WtvSyncEntry){serial, value}; new_list[*count] = (WtvSyncEntry){serial, value};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment