Fixes multi-stream bug exposed in e335065a1ba72
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 9 Sep 2011 17:49:43 +0000 (13:49 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 9 Sep 2011 17:49:43 +0000 (13:49 -0400)
src/opus_multistream.c

index f4f5e8e..be96f4e 100644 (file)
@@ -563,7 +563,7 @@ static int opus_multistream_decode_native(
          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)