Open wei-zhang-simplisafe opened 1 month ago
This ticket is exactly the same as https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/issues/1453 The previous ticket was submitted two years ago. I am surprised that it was never fixed
@wei-zhang-simplisafe I'm working on validating the finding, when I have an update I will post it here.
Please confirm you have already done the following
Please answer the following prompt
Describe the bug
There is a bug at https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/blob/master/src/source/PeerConnection/Retransmitter.c#L108
sequenceNumberList should be replaced by validIndexList
For RTC sequence number <= 65536, sequenceNumberList and validIndexList have the same value, the code still works. At 2Mbps, after 300 seconds of livestreaming, KVS SDK will fail to put retransmited packets back into rolling buffer and the video quality could suffer.
Expected Behavior
Re-transmitter always works
Current Behavior
Re-transmitter fails after sending 65536 RTP packets
Reproduction Steps
after sending 65536 RTP packets, re-transmit will fail with STATUS_ROLLING_BUFFER_NOT_IN_RANGE
WebRTC C SDK version being used
latest as of 05/20/2024
If it was working in a previous version, which one?
No response
Compiler and Version used
all compilers
Operating System and version
all OS
Platform being used
all platform