amazon-kinesis-video-streams-webrtc-sdk-c
amazon-kinesis-video-streams-webrtc-sdk-c copied to clipboard
[Bug]: KVS SDK RTP retransmitter bug
Please confirm you have already done the following
- [X] I have searched the repository for related/existing bug reports
- [X] I have all the details the issue requires
Please answer the following prompt
- [X] This issue is replicable using the unmodified sample application
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
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.
This is a very old issue. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.