]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
oggdec: Keep decoding on imput EOF.
authorAndre Noll <maan@systemlinux.org>
Fri, 28 Nov 2008 20:56:29 +0000 (21:56 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 28 Nov 2008 20:56:29 +0000 (21:56 +0100)
This bug causes the last chunk of the input not written out under
certain circumstances.

oggdec.c

index b82f12ef8b994c605cb7f1699e0923d41738d365..6b96c505c6cef18dd4b9ebf4e899f105c65f3e6f 100644 (file)
--- a/oggdec.c
+++ b/oggdec.c
@@ -150,7 +150,7 @@ static ssize_t ogg_convert(char *inbuffer, size_t len, struct filter_node *fn)
                PARA_NOTICE_LOG("%d channels, %d Hz\n", fn->fc->channels,
                        fn->fc->samplerate);
        }
-       while (!*fn->fc->input_error && fn->loaded < fn->bufsize) {
+       while (fn->loaded < fn->bufsize) {
                int length = fn->bufsize - fn->loaded;
                long read_ret = ov_read(pod->vf, fn->buf + fn->loaded, length,
                        ENDIAN, 2 /* 16 bit */, 1 /* signed */, NULL);