shithub: opus

Download patch

ref: 3a4659a622a8353b2e2815c1dc44f32972b45660
parent: 2dc27dfa13eb4f2b9cd291852b4e9c9508cd9cb2
author: Mark Harris <[email protected]>
date: Wed Nov 13 14:31:59 EST 2013

opus_multistream_packet_validate() now called with the total number of streams

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/src/opus_multistream_decoder.c
+++ b/src/opus_multistream_decoder.c
@@ -223,7 +223,7 @@
    }
    if (!do_plc)
    {
-      int ret = opus_multistream_packet_validate(data, len, st->layout.nb_coupled_streams, Fs);
+      int ret = opus_multistream_packet_validate(data, len, st->layout.nb_streams, Fs);
       if (ret < 0)
       {
          RESTORE_STACK;