vss: Initialize all bytes of the FEC header.
authorAndre Noll <maan@systemlinux.org>
Sun, 24 Oct 2010 17:23:25 +0000 (19:23 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 29 Jan 2011 10:43:33 +0000 (11:43 +0100)
Does not matter much but makes valgrind happier.

vss.c

diff --git a/vss.c b/vss.c
index 916a71d..21ac374 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -211,10 +211,11 @@ static void write_fec_header(struct fec_client *fc, struct vss_task *vsst)
        write_u32(buf + 14, g->bytes);
 
        write_u8(buf + 18, fc->current_slice_num);
+       write_u8(buf + 19, 0); /* unused */
        write_u16(buf + 20, g->slice_bytes);
        write_u8(buf + 22, g->first_chunk? 0 : 1);
        write_u8(buf + 23, vsst->header_len? 1 : 0);
-       memset(buf + 24, 0, 7);
+       memset(buf + 24, 0, 8);
 }
 
 static bool need_audio_header(struct fec_client *fc, struct vss_task *vsst)