(Hevc): Fixing out of boundary bug.