From f435908a2bfca2215a4990315cdff3fa721d21b5 Mon Sep 17 00:00:00 2001 From: Charles Mita Date: Wed, 15 Aug 2018 15:53:47 +0100 Subject: [PATCH] Fix nbytes out parameter in plugin_get_header Previously reported total number of bytes in a frame - should be the width of the array data type. --- src/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index c31609a..83ea552 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -119,7 +119,7 @@ void plugin_get_header( *nx = ds_prop.dims[2]; *ny = ds_prop.dims[1]; - *nbytes = ds_prop.dims[1] * ds_prop.dims[2] * ds_prop.data_width; + *nbytes = ds_prop.data_width; *number_of_frames = ds_prop.dims[0]; *qx = (float) x_pixel_size; *qy = (float) y_pixel_size;