OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0d8ff5
)
avformat/wtvenc: Use av_realloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 11 Apr 2015 11:50:07 +0000
(13:50 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 11 Apr 2015 11:50:50 +0000
(13:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/wtvenc.c
patch
|
blob
|
history
diff --git
a/libavformat/wtvenc.c
b/libavformat/wtvenc.c
index
e8a2b72
..
8aebddd
100644
(file)
--- 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};