aacdec: raise min buffer size to 1000 bytes.
authorAndre <maan@p133.(none)>
Thu, 4 May 2006 21:33:00 +0000 (23:33 +0200)
committerAndre <maan@p133.(none)>
Thu, 4 May 2006 21:33:00 +0000 (23:33 +0200)
Fixes problems when used together with the wav filter.

aacdec.c

index aa83539..0796e9c 100644 (file)
--- a/aacdec.c
+++ b/aacdec.c
@@ -205,7 +205,7 @@ static ssize_t mp4dec(char *inbuffer, size_t len, struct filter_node *fn)
 
        if (fn->loaded > fn->bufsize * 4 / 5)
                return 0;
-       if (len < 10 && !*fci->eof)
+       if (len < 1000 && !*fci->eof)
                return 0;
        padd->consumed = 0;
        padd->inbuf = inbuffer;