]> git.tuebingen.mpg.de Git - paraslash.git/commit
oggdec: Fix a thinko in post_select().
authorAndre Noll <maan@systemlinux.org>
Sun, 14 Feb 2010 21:58:12 +0000 (22:58 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 14 Feb 2010 21:58:12 +0000 (22:58 +0100)
commit694d9ae83695e54ffbb51acb1db0496c4281f4b4
tree7b44f39b03670622479ef77c575801a9b7dfcb7d
parentd96c06ff93493c125b9f4d36655e77d7029ca309
oggdec: Fix a thinko in post_select().

The old code broke out of the decoding loop if btr_node_status() returned zero
which is true if  no more input data is available for decoding or we already
have decoded more than 640K. However, in the first case there might still be
decoded data available to be passed to the child nodes and we should pass
that data as quick as possible to avoid buffer underruns.

So call btr_get_output_queue_size() rather than btr_node_status() to detect
the second case.
oggdec_filter.c