Fixed incorrect assertion when performing iLBC decoder packet loss concealment

Bug: None
Change-Id: Ieff264a377e83a6ebf77d9903514264ceaff9f2d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/192460
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32622}
This commit is contained in:
Garth Judge
2020-11-10 09:44:22 -08:00
committed by Commit Bot
parent f1c4123c42
commit 73f481c454

View File

@ -260,9 +260,10 @@ size_t WebRtcIlbcfix_DecodePlc(IlbcDecoderInstance* iLBCdec_inst,
for (i=0;i<noOfLostFrames;i++) { for (i=0;i<noOfLostFrames;i++) {
// PLC decoding shouldn't fail, because there is no external input data // PLC decoding shouldn't fail, because there is no external input data
// that can be bad. // that can be bad.
RTC_CHECK(WebRtcIlbcfix_DecodeImpl( int result = WebRtcIlbcfix_DecodeImpl(
&decoded[i * ((IlbcDecoder*)iLBCdec_inst)->blockl], &dummy, &decoded[i * ((IlbcDecoder*)iLBCdec_inst)->blockl], &dummy,
(IlbcDecoder*)iLBCdec_inst, 0)); (IlbcDecoder*)iLBCdec_inst, 0);
RTC_CHECK_EQ(result, 0);
} }
return (noOfLostFrames*((IlbcDecoder*)iLBCdec_inst)->blockl); return (noOfLostFrames*((IlbcDecoder*)iLBCdec_inst)->blockl);
} }