btr: Fix a nasty thinko in merge_input_pool().
authorAndre Noll <maan@systemlinux.org>
Tue, 2 Mar 2010 06:10:00 +0000 (07:10 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 2 Mar 2010 06:10:00 +0000 (07:10 +0100)
commit6a7f2b1e141f17bdc66c4eb9f43e1f115679943f
treea5b5c2affcacfe36f0c72c8cf792cea54667113c
parent635ffa801ce0d4f5055ad022a5de935acd83b056
btr: Fix a nasty thinko in merge_input_pool().

We must take into account the number of bytes already consumed from the wrap buffer.
Otherwise, we might end up not merging as much as we must,  which may cause errors
in the child nodes.

This bug was quite hard to hit, but it did bite the aac decoder reliably when used in audiod
with UDP + FEC.
buffer_tree.c