Merge commit 'fml/master'
authorAndre Noll <maan@systemlinux.org>
Mon, 1 Dec 2008 20:19:17 +0000 (21:19 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 1 Dec 2008 20:19:17 +0000 (21:19 +0100)
1  2 
mp3dec_filter.c

diff --cc mp3dec_filter.c
@@@ -33,9 -35,9 +33,9 @@@ static ssize_t mp3dec(char *inbuffer, s
  {
        int i, ret;
        struct private_mp3dec_data *pmd = fn->private_data;
-       size_t copy = PARA_MIN(len, 4096);
+       size_t copy = PARA_MIN(len, (size_t)4096);
  
 -      if (fn->loaded > fn->bufsize * 4 / 5)
 +      if (fn->loaded + 16384 > fn->bufsize)
                return 0;
        mad_stream_buffer(&pmd->stream, (unsigned char *) inbuffer, copy);
        pmd->stream.error = 0;