[FFmpeg-cvslog] lavf/avienc: Clear whole tag in avi_add_ientry()

Mats Peterson git at videolan.org
Sun Mar 13 16:47:38 CET 2016


ffmpeg | branch: master | Mats Peterson <matsp888 at yahoo.com> | Sun Mar 13 16:09:45 2016 +0100| [bdc798cc8d0061ed3f578e0a473cefab343aa602] | committer: Michael Niedermayer

lavf/avienc: Clear whole tag in avi_add_ientry()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bdc798cc8d0061ed3f578e0a473cefab343aa602
---

 libavformat/avienc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index dceb2ef..7a7abb8 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;



More information about the ffmpeg-cvslog mailing list