The overread avoidance fix in cbddee1cca broke the computation for the last row since it prevented the safe reading from the height+1-th row. CC: libav-stable@libav.org
cbddee1cca