AVI: fix array index calculation for tile reading

Fixes ticket #11100.
AVI: fix byte count when skipping rows
Merge pull request #672 from melissalinkert/rebased/dev_4_4/11100

AVI: fix array index calculation for tile reading (rebased onto dev_4_4)