]> git.tuebingen.mpg.de Git - paraslash.git/commit
vss: Use the stripped header also at stream start.
authorAndre Noll <maan@systemlinux.org>
Mon, 1 Nov 2010 08:28:11 +0000 (09:28 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 29 Jan 2011 10:43:34 +0000 (11:43 +0100)
commit28ea59db9b3cd2bd9d6be0f304d951aa550ea4d6
tree4a10ee1f22f66dfca0e385de69b2e0451eb2bc77
parent85d1f19df312c38936cf7721d67dcfb7ca034cfc
vss: Use the stripped header also at stream start.

For ogg vorbis streams the stripped header is computed when a new audio file is
opened, but chunk zero, the unmodified header, is used for the first FEC group.
This not only wastes bandwidth but might cause vss to abort because the length
of the real header was not taken into account when computing the FEC
parameters.

Solve this by introducing vss_get_chunk() which returns either the stripped
header or calls afh_get_chunk() to obtain a reference to a "real" chunk.
vss.c