Ticket #6997: changes_on_searching_c_dvdnav.diff

File changes_on_searching_c_dvdnav.diff, 835 bytes (added by skamithi, 15 years ago)

fix typo in searching.c , after the major upgrade about 5 months ago, i made a type in the for loop statement.

  • libs/libmythdvdnav/dvdnav/searching.c

     
    666666  {
    667667    dsi = dvdnav_get_current_nav_dsi(this);
    668668    if (length > 0) {
    669       for (i = 1; i <= 19; i++) {
    670         if (stime[i-1]/2.0 <= length/2.0) {
     669      for (i = 0; i < 19; i++) {
     670        if (stime[i]/2.0 <= length/2.0) {
    671671          offset = dsi->vobu_sri.fwda[i];
    672672          if (offset >> 31) {
    673673            new_vobu = cur_vobu + (offset & 0xffff);
     
    684684        }
    685685      }
    686686    } else {
    687       for (i = 1; i <= 19; i++) {
     687      for (i = 0; i < 19; i++) {
    688688        if (stime[18 - i]/2.0 >= abs(length)/2.0)
    689689        {
    690690          offset = dsi->vobu_sri.bwda[i];