shithub: opus

Download patch

ref: 7e783b141b3982e778b42239a6a70dbfe5655599
parent: 7c74bc39306e51568b670c2eca9f849eeafaddb6
author: Timothy B. Terriberry <[email protected]>
date: Thu May 23 11:54:55 EDT 2013

Move misplaced RESTORE_STACK.

Introduced in c152d602.

Thanks to Pedro Becerra for the report.

--- a/silk/VAD.c
+++ b/silk/VAD.c
@@ -289,8 +289,8 @@
         psEncC->input_quality_bands_Q15[ b ] = silk_sigm_Q15( silk_RSHIFT( SNR_Q7 - 16 * 128, 4 ) );
     }
 
-    return( ret );
     RESTORE_STACK;
+    return( ret );
 }
 
 /**************************/