Ticket #8527: isnearend_overflow.patch

File isnearend_overflow.patch, 481 bytes (added by Jim Stichnoth <stichnot@…>, 14 years ago)
  • libs/libmythtv/NuppelVideoPlayer.cpp

     
    45644564            }
    45654565        }
    45664566        else
    4567             framesLeft = totalFrames - framesRead;
     4567            framesLeft = totalFrames < framesRead ? 0 : totalFrames - framesRead;
    45684568        return (framesLeft < (uint64_t)margin);
    45694569    }
    45704570