Skip to content

Commit

Permalink
fixed: make sure we find the correct cell when we search for the requ…
Browse files Browse the repository at this point in the history
…ested time

cells in a pgc doesn't need to have continous sectors
  • Loading branch information
elupus committed Mar 21, 2012
1 parent eabc2c6 commit d681bb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/libdvd/libdvdnav/src/searching.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,8 @@ dvdnav_status_t dvdnav_time_search(dvdnav_t *this,

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 {
Expand Down

0 comments on commit d681bb2

Please sign in to comment.