shithub: opus

Download patch

ref: a9b7def9f5b6e6ee64747572d678735595a897fd
parent: 66b7fe0a5cb2777a72b3bec6309f9d43daa51fea
author: Pedro Becerra <[email protected]>
date: Mon Dec 9 11:08:29 EST 2013

s/MAX16/MAX32/ in transient_analysis()

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -365,7 +365,7 @@
    /* Arbitrary metric for VBR boost */
    tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42);
    /* *tf_estimate = 1 + MIN16(1, sqrt(MAX16(0, tf_max-30))/20); */
-   *tf_estimate = celt_sqrt(MAX16(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
+   *tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
    /*printf("%d %f\n", tf_max, mask_metric);*/
    RESTORE_STACK;
 #ifdef FUZZING