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
Conversation
17b5805
to
2c79c18
Compare
src/media_tools/route_dmx.c
Outdated
@@ -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; |
There was a problem hiding this comment.
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.
src/media_tools/route_dmx.c
Outdated
@@ -23,6 +23,7 @@ | |||
* | |||
*/ | |||
|
|||
#include <math.h> |
There was a problem hiding this comment.
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
.
I made 2 minor comments. Otherwise LGTM. Thanks! |
Thanks for the commits, they address my comments. |
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.