lavf/avienc: Clear whole tag in avi_add_ientry()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/187/head
Mats Peterson 9 years ago committed by Michael Niedermayer
parent 77bc3e1944
commit bdc798cc8d
  1. 2
      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;

Loading…
Cancel
Save