AVI: fix byte count when skipping rows

Contains the last commit from gh-672.  This fixes offsets when reading tiles from certain types of AVI files.