Ticket #8832: isneardeletepoint.patch
File isneardeletepoint.patch, 700 bytes (added by , 15 years ago) |
---|
-
libs/libmythtv/deletemap.cpp
284 284 uint64_t prev = GetNearestMark(frame, total, false); 285 285 uint64_t next = GetNearestMark(frame, total, true); 286 286 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; 290 288 nearestMark = prevdist < nextdist ? prev : next; 291 289 uint64_t frames = prevdist < nextdist ? prevdist : nextdist; 292 290