Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelicia Lim <flim@google.com>2019-12-03 03:37:14 +0300
committerFelicia Lim <flim@google.com>2019-12-03 20:32:43 +0300
commit8493bf50892be0e902a354444747e6d14f2a6a10 (patch)
tree16f0a8879afdfc18b6ba213e7133588a7b431e49 /src/opus_multistream_decoder.c
parentcd529edb3363b0be6aebdefa09c4188629f45e2c (diff)
Don't update null data pointer after each multistream decoder
The data pointer could be null in the case of DTX or packet loss.
Diffstat (limited to 'src/opus_multistream_decoder.c')
-rw-r--r--src/opus_multistream_decoder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/opus_multistream_decoder.c b/src/opus_multistream_decoder.c
index 0018517a..a2837c35 100644
--- a/src/opus_multistream_decoder.c
+++ b/src/opus_multistream_decoder.c
@@ -251,8 +251,11 @@ int opus_multistream_decode_native(
}
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;