diff options
author | Joakim Plate <elupus@ecce.se> | 2012-03-21 13:31:44 -0700 |
---|---|---|
committer | Joakim Plate <elupus@ecce.se> | 2012-03-21 13:31:44 -0700 |
commit | eabc2c62a08c0220017472b0e9bf011ddf8939d5 (patch) | |
tree | 5391cfc471b7a87c9faaa5b7d82310bfbce67fc1 | |
parent | 038ecf1764357439a44fff188b22cd34d52b30b5 (diff) | |
parent | 9b322520b90503ad2b1cbcf9062f8a3d377c7c28 (diff) |
Merge pull request #714 from abrasive/master
fix : DVD seeking is broken on some discs (libdvdnav)
This closes #12369
-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 { |