Unverified Commit 8493bf50 authored by Felicia Lim's avatar Felicia Lim
Browse files

Don't update null data pointer after each multistream decoder

The data pointer could be null in the case of DTX or packet loss.
parent cd529edb
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment