projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66242ab
)
oggdec: Keep decoding on imput EOF.
author
Andre Noll
<maan@systemlinux.org>
Fri, 28 Nov 2008 20:56:29 +0000
(21:56 +0100)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/oggdec.c
b/oggdec.c
index
b82f12e
..
6b96c50
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);