Skip to content

Commit 9868d6f

Browse files
committed
Update mrf_insert.cpp
avoid using deprecated function in gdal
1 parent d4a3cf0 commit 9868d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mrf_apps/mrf_insert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ bool state::patch()
228228
GDALDataType eDataType = b0->GetRasterDataType();
229229
overview_count = b0->GetOverviewCount();
230230

231-
int pixel_size = GDALGetDataTypeSize(eDataType) / 8; // Bytes per pixel per band
231+
int pixel_size = GDALGetDataTypeSizeBytes(eDataType);
232232
int line_size = tsz_x * pixel_size; // A line has this many bytes
233233
int buffer_size = line_size * tsz_y; // A block size in bytes
234234

0 commit comments

Comments
 (0)