summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/file/uca-file-camera.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/file/uca-file-camera.c b/plugins/file/uca-file-camera.c
index b89c5b6..00a3225 100644
--- a/plugins/file/uca-file-camera.c
+++ b/plugins/file/uca-file-camera.c
@@ -98,9 +98,7 @@ read_tiff_data (UcaFileCameraPrivate *priv, const gchar *fname, gpointer buffer)
return FALSE;
}
- if (priv->bitdepth > 8) {
- step *= priv->bitdepth <= 16 ? 2 : 4;
- }
+ step *= priv->bitdepth / 8;
for (guint32 i = 0; i < priv->height; i++) {
result = TIFFReadScanline (file, ((gchar *) buffer) + offset, i, 0);