Forgot to call RESTORE_STACK in 328953e1896432bc700b9b5c69ae2987c5d752f4
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Mon, 4 Jul 2016 14:45:15 +0000 (10:45 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Mon, 4 Jul 2016 14:45:15 +0000 (10:45 -0400)
src/opus_multistream_encoder.c

index 389a847..e722e31 100644 (file)
@@ -1032,7 +1032,10 @@ static int opus_multistream_encode_native
       /* If the opus_repacketizer_cat() fails, then something's seriously wrong
          with the encoder. */
       if (ret != OPUS_OK)
+      {
+         RESTORE_STACK;
          return OPUS_INTERNAL_ERROR;
+      }
       len = opus_repacketizer_out_range_impl(&rp, 0, opus_repacketizer_get_nb_frames(&rp),
             data, max_data_bytes-tot_size, s != st->layout.nb_streams-1, !vbr && s == st->layout.nb_streams-1);
       data += len;