Ticket #8832: isneardeletepoint.patch

File isneardeletepoint.patch, 700 bytes (added by Jim Stichnoth <stichnot@…>, 15 years ago)
  • libs/libmythtv/deletemap.cpp

     
    284284    uint64_t prev     = GetNearestMark(frame, total, false);
    285285    uint64_t next     = GetNearestMark(frame, total, true);
    286286    uint64_t prevdist = frame - prev;
    287     uint64_t nextdist = frame - next;
    288     prevdist = prevdist >= 0 ? prevdist : -prevdist;
    289     nextdist = nextdist >= 0 ? nextdist : -nextdist;
     287    uint64_t nextdist = next - frame;
    290288    nearestMark       = prevdist < nextdist ? prev : next;
    291289    uint64_t frames   = prevdist < nextdist ? prevdist : nextdist;
    292290