shithub: opus

Download patch

ref: 8493bf50892be0e902a354444747e6d14f2a6a10
parent: cd529edb3363b0be6aebdefa09c4188629f45e2c
author: Felicia Lim <flim@google.com>
date: Mon Dec 2 11:37:14 EST 2019

Don't update null data pointer after each multistream decoder

The data pointer could be null in the case of DTX or packet loss.

--- a/src/opus_multistream_decoder.c
+++ b/src/opus_multistream_decoder.c
@@ -251,8 +251,11 @@
       }
       packet_offset = 0;
       ret = opus_decode_native(dec, data, len, buf, frame_size, decode_fec, s!=st->layout.nb_streams-1, &packet_offset, soft_clip);
-      data += packet_offset;
-      len -= packet_offset;
+      if (!do_plc)
+      {
+        data += packet_offset;
+        len -= packet_offset;
+      }
       if (ret <= 0)
       {
          RESTORE_STACK;