diff options
Diffstat (limited to 'lib/libdvd/libdvdnav/src/searching.c')
-rw-r--r-- | lib/libdvd/libdvdnav/src/searching.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libdvd/libdvdnav/src/searching.c b/lib/libdvd/libdvdnav/src/searching.c index 0d3475ed1c..03f1696dfc 100644 --- a/lib/libdvd/libdvdnav/src/searching.c +++ b/lib/libdvd/libdvdnav/src/searching.c @@ -225,13 +225,9 @@ timemapdone: if(found) { length = cell->last_sector - cell->first_sector + 1; - if (target >= length) { - target -= length; - } else { - /* convert the target sector from Cell-relative to absolute physical sector */ - target += cell->first_sector; - break; - } + /* target is in absolute sectors */ + if (target <= cell->last_sector) + break; } else { |