[DVDnav-discuss] Fix integer overflow
Jean-Baptiste Kempf
git at videolan.org
Mon Aug 4 19:26:57 CEST 2014
libdvdnav | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 4 19:26:30 2014 +0200| [30d3de4f70a8e4ca0a0fcb300630fd28135994cb] | committer: Jean-Baptiste Kempf
Fix integer overflow
> http://git.videolan.org/gitweb.cgi/libdvdnav.git/?a=commit;h=30d3de4f70a8e4ca0a0fcb300630fd28135994cb
---
src/searching.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/searching.c b/src/searching.c
index 0eaa116..2421847 100644
--- a/src/searching.c
+++ b/src/searching.c
@@ -1089,7 +1089,7 @@ static int32_t dvdnav_tmap_calc_time_for_tmap_entry(dvdnav_jump_args_t *args,
}
/* calc time of lo */
- time_adj = (uint64_t)((args->tmap_interval * vobu_pct) / 1000);
+ time_adj = ((uint64_t)args->tmap_interval * vobu_pct) / 1000;
*out_time = pos->time - time_adj;
return 1;
}
More information about the DVDnav-discuss
mailing list