Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Do Not Skip Overlapping LCT Fragments #2752

Merged
merged 3 commits into from Mar 12, 2024

Conversation

touatily
Copy link
Contributor

@touatily touatily commented Feb 8, 2024

When receiving LCT fragments, ensure that packets are not skipped if they overlap with received packets.
This fix addresses the issue where skipping overlapped packets led to potential data loss or processing errors.

@@ -762,7 +763,7 @@ static GF_Err gf_route_service_flush_object(GF_ROUTEService *s, GF_LCTObject *ob

static GF_Err gf_route_service_gather_object(GF_ROUTEDmx *routedmx, GF_ROUTEService *s, u32 tsi, u32 toi, u32 start_offset, char *data, u32 size, u32 total_len, Bool close_flag, Bool in_order, GF_ROUTELCTChannel *rlct, GF_LCTObject **gather_obj)
{
Bool inserted, done;
Bool /*inserted,*/ done;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merging, let's not forget to remove the unused code.

@@ -23,6 +23,7 @@
*
*/

#include <math.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could remove this by using MAX instead of fmax.

@rbouqueau
Copy link
Member

I made 2 minor comments. Otherwise LGTM. Thanks!

@touatily touatily requested a review from rbouqueau March 6, 2024 18:56
@rbouqueau
Copy link
Member

Thanks for the commits, they address my comments.

@aureliendavid aureliendavid merged commit efd921d into master Mar 12, 2024
16 checks passed
@touatily touatily deleted the buildbot-overlapping-frag branch March 12, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants