shithub: opusfile

Download patch

ref: d0ce85644df59f850ee1a7db71e83366acf319d0
parent: 007ec4e4611e7636a72830b8e927c8d803d69ece
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Sun Sep 23 04:49:37 EDT 2012

Minor 16-bit int fix.

--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -70,7 +70,7 @@
 #define OP_CHUNK_SIZE     (65536)
 /*The maximum amount to seek backwards per step when trying to find the
    previous page.*/
-#define OP_CHUNK_SIZE_MAX (1024*1024)
+#define OP_CHUNK_SIZE_MAX (1024*(opus_int32)1024)
 /*A smaller read size is needed for low-rate streaming.*/
 #define OP_READ_SIZE      (2048)