From 7ef63fbe1f78f79e1923bc42e06fbdf1ec28ffd3 Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Date: Wed, 27 Oct 2010 06:49:28 -0400
Subject: [PATCH] Minor fix

---
 libcelt/pitch.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libcelt/pitch.c b/libcelt/pitch.c
index 4b38990a..abbe2032 100644
--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -254,6 +254,8 @@ float remove_doubling(celt_word32 *pre[2], int COMBFILTER_MAXPERIOD, int N, int
          T = T1;
       }
    }
+   if (pg > g)
+      pg = g;
    /*printf ("%d %f\n", T, g);*/
    *_T0 = T;
    return pg;
-- 
GitLab