Ticket #3526: expected_nav.diff

File expected_nav.diff, 1.1 KB (added by skamithi, 13 years ago)
  • libmythdvdnav/searching.c

     
    647647 * If you want 5 seconds ahead relative time = +10.
    648648 * If relative_time is negative, then
    649649 * look backwards within the cell.
     650 * max seek interval is 60seconds * 2.
     651 * for some reason dvdnav seems to return an error when seeking
     652 * above 60 seconds on some dvds.
    650653 */
    651654dvdnav_status_t dvdnav_time_search_within_cell(dvdnav_t *this,
    652655                    int relative_time)
     
    685688  {
    686689    dsi = dvdnav_get_current_nav_dsi(this);
    687690    if (length > 0) {
    688       for (i = 0; i <= 19; i++) {
     691      for (i = 1; i <= 19; i++) {
    689692        if (stime[i]/2.0 <= length/2.0) {
    690693          offset = dsi->vobu_sri.fwda[i];
    691694          if (offset >> 31) {
     
    703706        }
    704707      }
    705708    } else {
    706       for (i = 0; i <= 19; i++) {
     709      for (i = 1; i <= 19; i++) {
    707710        if (stime[18 - i]/2.0 >= abs(length)/2.0)
    708711        {
    709712          offset = dsi->vobu_sri.bwda[i];