Skip to content

Commit

Permalink
fix: replace UINT32_MAX by GF_UINT_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
touatily committed Mar 22, 2024
1 parent 3e83a69 commit a61eb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/media_tools/route_dmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ static GF_Err gf_route_service_gather_object(GF_ROUTEDmx *routedmx, GF_ROUTEServ
}
}

if((u64)start_offset + size > UINT32_MAX) {
GF_LOG(GF_LOG_ERROR, GF_LOG_ROUTE, ("[ROUTE] Service %d TSI %u TOI %u Not supported: Offset (%u) + Size (%u) exceeds the maximum supported value (%u), skipping\n", s->service_id, tsi, toi, start_offset, size, UINT32_MAX));
if((u64)start_offset + size > GF_UINT_MAX) {
GF_LOG(GF_LOG_ERROR, GF_LOG_ROUTE, ("[ROUTE] Service %d TSI %u TOI %u Not supported: Offset (%u) + Size (%u) exceeds the maximum supported value (%u), skipping\n", s->service_id, tsi, toi, start_offset, size, GF_UINT_MAX));
return GF_NOT_SUPPORTED;
}
if(total_len && (start_offset + size > total_len)) {
Expand Down

0 comments on commit a61eb1f

Please sign in to comment.