vss: Avoid assertion "i == g->num_header_slices - 1".
authorAndre Noll <maan@systemlinux.org>
Sun, 1 Sep 2013 15:54:25 +0000 (15:54 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 22 Sep 2013 00:10:27 +0000 (02:10 +0200)
commit17a1b40b20ff584a3c4347546e419001f9bd2a63
tree1958de49830316fedd320b2663f105edc144659d
parent034cda0df3b2da1048d5ee90296385c52efbbcae
vss: Avoid assertion "i == g->num_header_slices - 1".

This fixes a very old bug in the timing code for fec slices. Depending
on the number of bytes to submit and on the number of slices of the
current fec group it may happen that we reserve more slices than
needed for the audio file header. This is not a problem per se, but the
above assertion hits in this case and aborts para_server.

Fix this by removing the assertion, and make sure that all reserved
header slices are properly initialized.
vss.c