lavf/avienc: Clear whole tag in avi_add_ientry()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Mats Peterson 2016-03-13 16:09:45 +01:00 committed by Michael Niedermayer
parent 77bc3e1944
commit bdc798cc8d

View File

@ -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;