aboutsummaryrefslogtreecommitdiff
path: root/lib/libdvd
diff options
context:
space:
mode:
authorelupus <elupus@xbmc.org>2012-03-21 21:38:59 +0100
committerelupus <elupus@xbmc.org>2012-03-21 21:38:59 +0100
commitd681bb2142493800333605d796d7af4b33039751 (patch)
tree7ed30d29c9cc35548dd6aec593d6e8bf5739af9e /lib/libdvd
parenteabc2c62a08c0220017472b0e9bf011ddf8939d5 (diff)
fixed: make sure we find the correct cell when we search for the requested time
cells in a pgc doesn't need to have continous sectors
Diffstat (limited to 'lib/libdvd')
-rw-r--r--lib/libdvd/libdvdnav/src/searching.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libdvd/libdvdnav/src/searching.c b/lib/libdvd/libdvdnav/src/searching.c
index 03f1696dfc..ed66bf4d99 100644
--- a/lib/libdvd/libdvdnav/src/searching.c
+++ b/lib/libdvd/libdvdnav/src/searching.c
@@ -224,9 +224,8 @@ timemapdone:
if(found) {
- length = cell->last_sector - cell->first_sector + 1;
- /* target is in absolute sectors */
- if (target <= cell->last_sector)
+ if (target >= cell->first_sector
+ && target <= cell->last_sector)
break;
} else {