diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-11 13:50:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-11 13:50:50 +0200 |
commit | e33355213daf766a0630b757f90edd5942642bed (patch) | |
tree | 14be40ea2ea79475d539492aa875ca0dc85b008b /libavformat/wtvenc.c | |
parent | e0d8ff5ef105fb281323f05983b9d62f57ff4d35 (diff) | |
download | ffmpeg-e33355213daf766a0630b757f90edd5942642bed.tar.gz |
avformat/wtvenc: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/wtvenc.c')
-rw-r--r-- | libavformat/wtvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index e8a2b72a72..8aebdddf03 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -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}; |