diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-12 03:24:56 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-12 03:24:56 +0400 |
commit | 1d72d383ac602987882569f362838cd866c5c199 (patch) | |
tree | 2058c3d016b540d0a38feffd26abf4c907903f3e | |
parent | 77a596365854482a3233335f450148e8e375cd94 (diff) |
oops, don't need RESTORE_STACK when there's no stack
-rw-r--r-- | src/opus_decoder.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index 2a7b78bc..b66f3b69 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -702,10 +702,7 @@ int opus_decode(OpusDecoder *st, const unsigned char *data, 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 @@ int opus_decode_float(OpusDecoder *st, const unsigned char *data, 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); } |