diff options
author | Mats Peterson <matsp888@yahoo.com> | 2016-03-13 16:09:45 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-13 16:26:39 +0100 |
commit | bdc798cc8d0061ed3f578e0a473cefab343aa602 (patch) | |
tree | 8e5c69f7277df186e858b6d4bc73964ab962b5ae /libavformat/avienc.c | |
parent | 77bc3e1944a912d712aa0d6d146b991a3686d618 (diff) | |
download | ffmpeg-bdc798cc8d0061ed3f578e0a473cefab343aa602.tar.gz |
lavf/avienc: Clear whole tag in avi_add_ientry()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r-- | libavformat/avienc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c index dceb2efcec..7a7abb8718 100644 --- 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; |