shithub: opus

Download patch

ref: 96748cf309af5539eab85080408c9865746d720b
parent: c6ca49923e36f7e35b20bb22134d556ddf74619b
author: Jean-Marc Valin <[email protected]>
date: Fri Jun 6 13:04:07 EDT 2008

Allowing frames up to 512 samples

--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -328,9 +328,9 @@
          *error = CELT_BAD_ARG;
       return NULL;
    }
-   if (frame_size < 64 || frame_size > 256 || frame_size%2!=0)
+   if (frame_size < 64 || frame_size > 512 || frame_size%2!=0)
    {
-      celt_warning("Only even frame sizes between 64 and 256 are supported");
+      celt_warning("Only even frame sizes between 64 and 512 are supported");
       if (error)
          *error = CELT_BAD_ARG;
       return NULL;