shithub: opus

Download patch

ref: 1d72d383ac602987882569f362838cd866c5c199
parent: 77a596365854482a3233335f450148e8e375cd94
author: Jean-Marc Valin <[email protected]>
date: Mon Nov 11 13:24:56 EST 2013

oops, don't need RESTORE_STACK when there's no stack

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -702,10 +702,7 @@
       opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec)
 {
    if(frame_size<=0)
-   {
-      RESTORE_STACK;
       return OPUS_BAD_ARG;
-   }
    return opus_decode_native(st, data, len, pcm, frame_size, decode_fec, 0, NULL, 0);
 }
 
@@ -766,10 +763,7 @@
       opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec)
 {
    if(frame_size<=0)
-   {
-      RESTORE_STACK;
       return OPUS_BAD_ARG;
-   }
    return opus_decode_native(st, data, len, pcm, frame_size, decode_fec, 0, NULL, 0);
 }