shithub: opus

Download patch

ref: 0ca076d5272a19da36021bad4739047866eca180
parent: f5ac8a688ce03d8824bb0d0f79ce0d273e55558b
author: Jean-Marc Valin <[email protected]>
date: Fri Sep 9 09:49:43 EDT 2011

Fixes multi-stream bug exposed in e335065a1ba72

--- a/src/opus_multistream.c
+++ b/src/opus_multistream.c
@@ -563,7 +563,7 @@
          RESTORE_STACK;
          return OPUS_INVALID_PACKET;
       }
-      ret = opus_decode_native(dec, data, len, buf, frame_size, decode_fec, 1, &packet_offset);
+      ret = opus_decode_native(dec, data, len, buf, frame_size, decode_fec, s!=st->layout.nb_streams-1, &packet_offset);
       data += packet_offset;
       len -= packet_offset;
       if (ret > frame_size)