The band index was incorrectly calculated using pointer arithmetic on a local parameter address, which is meaningless. Now uses the band index passed as a parameter instead.
The band index was incorrectly calculated using pointer arithmetic on a local parameter address, which is meaningless. Now uses the band index passed as a parameter instead.