Skip to content

Commit

Permalink
Display a warning if the TOL field provided in the extension is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
touatily committed Mar 13, 2024
1 parent 25c254e commit 3217e27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/media_tools/route_dmx.c
Expand Up @@ -1773,6 +1773,9 @@ static GF_Err gf_route_dmx_process_service(GF_ROUTEDmx *routedmx, GF_ROUTEServic

case GF_LCT_EXT_TOL24:
tol_size = gf_bs_read_int(routedmx->bs, 24);
if(! tol_size) {
GF_LOG(GF_LOG_WARNING, GF_LOG_ROUTE, ("[ROUTE] Service %d : wrong TOL=%u value \n", s->service_id, tol_size));
}
break;

case GF_LCT_EXT_TOL48:
Expand All @@ -1781,6 +1784,9 @@ static GF_Err gf_route_dmx_process_service(GF_ROUTEDmx *routedmx, GF_ROUTEServic
continue;
}
tol_size = gf_bs_read_long_int(routedmx->bs, 48);
if(! tol_size) {
GF_LOG(GF_LOG_WARNING, GF_LOG_ROUTE, ("[ROUTE] Service %d : wrong TOL=%u value \n", s->service_id, tol_size));
}
break;

default:
Expand Down

0 comments on commit 3217e27

Please sign in to comment.