shithub: opus

Download patch

ref: 5a6e7c8b2f40cf13f74f061422fc29710beccfb3
parent: 22345ef16eb89ddb992d136622a3231635625600
author: Jean-Marc Valin <[email protected]>
date: Mon Mar 11 09:41:11 EDT 2013

Fixes pseudo-stack

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -1806,7 +1806,6 @@
    frame_size = frame_size_select(frame_size, st->variable_duration, st->Fs);
    if(frame_size<0)
    {
-      RESTORE_STACK;
       return OPUS_BAD_ARG;
    }
    return opus_encode_native(st, pcm, frame_size, data, out_data_bytes, 16);
@@ -1880,7 +1879,6 @@
    }
    if(frame_size<0)
    {
-      RESTORE_STACK;
       return OPUS_BAD_ARG;
    }