Commit bdc798cc authored by Mats Peterson's avatar Mats Peterson Committed by Michael Niedermayer

lavf/avienc: Clear whole tag in avi_add_ientry()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 77bc3e19
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment