From: Andre Noll Date: Fri, 28 Nov 2008 20:56:29 +0000 (+0100) Subject: oggdec: Keep decoding on imput EOF. X-Git-Tag: v0.3.3~16 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;ds=sidebyside;h=941d42f4147964fb969215ea3f669b07c882b3fb;p=paraslash.git oggdec: Keep decoding on imput EOF. This bug causes the last chunk of the input not written out under certain circumstances. --- diff --git a/oggdec.c b/oggdec.c index b82f12ef..6b96c505 100644 --- 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);