We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a3cf0 commit 9868d6fCopy full SHA for 9868d6f
mrf_apps/mrf_insert.cpp
@@ -228,7 +228,7 @@ bool state::patch()
228
GDALDataType eDataType = b0->GetRasterDataType();
229
overview_count = b0->GetOverviewCount();
230
231
- int pixel_size = GDALGetDataTypeSize(eDataType) / 8; // Bytes per pixel per band
+ int pixel_size = GDALGetDataTypeSizeBytes(eDataType);
232
int line_size = tsz_x * pixel_size; // A line has this many bytes
233
int buffer_size = line_size * tsz_y; // A block size in bytes
234
0 commit comments