Fix vorbis decoding error.
This change mimics what the ARM assembly code is doing. I believe this bug
was exposed when EOS handling was changed to allow an empty buffer.
Change-Id: I5eb88c563708a0013c31f7a0bb7efbc2d2d79231
Signed-off-by: Douglas Leung <douglas@mips.com>
diff --git a/Tremolo/bitwise.c b/Tremolo/bitwise.c
index 2182641..bb28591 100644
--- a/Tremolo/bitwise.c
+++ b/Tremolo/bitwise.c
@@ -224,8 +224,8 @@
unsigned char *ptr=b->headptr;
ogg_reference *head=b->head;
- if(end<0)return -1;
- if (!head || !end)return -1;
+ if(end<0)return 0;
+ if (!head || !end)return 0;
if(bits){
_lookspan();