]> git.tuebingen.mpg.de Git - paraslash.git/commit
fecdec: Defer decoding until the next group after the first _usable_ fec group starts.
authorAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:23:45 +0000 (19:23 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:23:45 +0000 (19:23 +0100)
commit9c9fe68e8cf86514230993825559c61cadeae22a
treebdec2c328a2d5039388fd2dcb56664f888bb6b97
parent3bbec8ac8ab1879d24acbff447850c0e3872daa7
fecdec: Defer decoding until the next group after the first _usable_ fec group starts.

Commit faeabd31b4bea5c097acff4738a0626e3c84f1d9 (fecdec: Defer decoding until
the first slice of the second group arrives.) changed the fec decoder such that it does
not start to write the decoded output ASAP but waits until the next group starts.

This is generally a good idea, but the patch missed the fact that the first complete group
might be unusable in case of streams that carry an audio file header (currently only ogg
vorbis).

Fix this flaw by setting the completion status to GCS_FIRST_GROUP_COMPLETE only
if we received a complete group that is also usable.
fecdec_filter.c