oggdec: Fix end-of-file detection.
authorAndre Noll <maan@systemlinux.org>
Sun, 25 Apr 2010 12:36:15 +0000 (14:36 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 Apr 2010 12:36:15 +0000 (14:36 +0200)
This bug causes the end of the decoded output not being written to the child nodes
of the buffer tree under certain circumstances. Even if the buffer tree detects EOF
we must not just bail out because there might still be data available for ov_read().

So remember the node status and return negative only if the node status is negative
_and_ ov_read() returns zero.


No differences found