From 0ca076d5272a19da36021bad4739047866eca180 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin <jmvalin@jmvalin.ca> Date: Fri, 9 Sep 2011 13:49:43 -0400 Subject: [PATCH] Fixes multi-stream bug exposed in e335065a1ba72 --- src/opus_multistream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opus_multistream.c b/src/opus_multistream.c index f4f5e8ef0..be96f4e67 100644 --- a/src/opus_multistream.c +++ b/src/opus_multistream.c @@ -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) -- GitLab