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:
77bc3e1
)
lavf/avienc: Clear whole tag in avi_add_ientry()
author
Mats Peterson
<matsp888@yahoo.com>
Sun, 13 Mar 2016 15:09:45 +0000
(16:09 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 13 Mar 2016 15:26:39 +0000
(16:26 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/avienc.c
patch
|
blob
|
history
diff --git
a/libavformat/avienc.c
b/libavformat/avienc.c
index
dceb2ef
..
7a7abb8
100644
(file)
--- a/
libavformat/avienc.c
+++ b/
libavformat/avienc.c
@@
-124,7
+124,7
@@
static int avi_add_ientry(AVFormatContext *s, int stream_index, char *tag,
if (tag)
memcpy(idx->cluster[cl][id].tag, tag, 4);
else
-
*(idx->cluster[cl][id].tag) = '\0'
;
+
memset(idx->cluster[cl][id].tag, 0, 4)
;
idx->cluster[cl][id].flags = flags;
idx->cluster[cl][id].pos = avio_tell(pb) - avi->movi_list;
idx->cluster[cl][id].len = size;