shithub: opus

Download patch

ref: e1f846208e5d584673fc171009ada085538c7c56
parent: 05291fd6a699cf384e578368231be928abbc5c52
author: Jean-Marc Valin <[email protected]>
date: Sun Dec 29 13:45:49 EST 2013

Minor cleanup -- nothing to see here

--- a/celt/celt_decoder.c
+++ b/celt/celt_decoder.c
@@ -264,7 +264,7 @@
    int B;
    int N;
    int shift;
-   const int overlap = OVERLAP(mode);
+   const int overlap = mode->overlap;
 
    if (shortBlocks)
    {
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -416,7 +416,7 @@
 static void compute_mdcts(const CELTMode *mode, int shortBlocks, celt_sig * OPUS_RESTRICT in,
                           celt_sig * OPUS_RESTRICT out, int C, int CC, int LM, int upsample)
 {
-   const int overlap = OVERLAP(mode);
+   const int overlap = mode->overlap;
    int N;
    int B;
    int shift;
--- a/celt/modes.h
+++ b/celt/modes.h
@@ -39,14 +39,6 @@
 
 #define MAX_PERIOD 1024
 
-#ifndef OVERLAP
-#define OVERLAP(mode) ((mode)->overlap)
-#endif
-
-#ifndef FRAMESIZE
-#define FRAMESIZE(mode) ((mode)->mdctSize)
-#endif
-
 typedef struct {
    int size;
    const opus_int16 *index;