projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42345f9
)
resindvd: Guard against a divide-by-zero error.
author
Jan Schmidt
<thaytan@noraisin.net>
Sat, 14 Nov 2009 00:31:29 +0000
(
00:31
+0000)
committer
Jan Schmidt
<thaytan@noraisin.net>
Wed, 18 Nov 2009 01:58:20 +0000
(
01:58
+0000)
https://bugzilla.gnome.org/show_bug.cgi?id=600263
ext/resindvd/resindvdsrc.c
patch
|
blob
|
history
diff --git
a/ext/resindvd/resindvdsrc.c
b/ext/resindvd/resindvdsrc.c
index
2b81a8d
..
7f342d3
100644
(file)
--- a/
ext/resindvd/resindvdsrc.c
+++ b/
ext/resindvd/resindvdsrc.c
@@
-2591,6
+2591,9
@@
rsn_dvdsrc_get_sector_from_time_tmap (resinDvdSrc * src, GstClockTime ts)
/* Get the time map */
title_tmap = vts_tmapt->tmap + vts_ttn - 1;
+ if (title_tmap->tmu == 0)
+ return -1;
+
entry = ts / (title_tmap->tmu * GST_SECOND);
if (entry == 0)
return 0;