aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-cross-product.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-15 17:08:02 +0200
committerMattias Andrée <maandree@kth.se>2017-07-15 17:08:02 +0200
commit3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f (patch)
treee8b08fe9b0cdc208f66582309377bc3c1817fe1f /src/blind-cross-product.c
parentGenerate USING_BINARY{32,64} (diff)
downloadblind-3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f.tar.gz
blind-3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f.tar.bz2
blind-3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f.tar.xz
Some improvements and fixes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-cross-product.c')
-rw-r--r--src/blind-cross-product.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blind-cross-product.c b/src/blind-cross-product.c
index ca5fcdf..5f79424 100644
--- a/src/blind-cross-product.c
+++ b/src/blind-cross-product.c
@@ -39,9 +39,9 @@ main(int argc, char *argv[])
eopen_stream(&left, NULL);
eopen_stream(&right, argv[0]);
- if (!strcmp(left.pixfmt, "xyza"))
+ if (left.encoding == DOUBLE)
process = process_lf;
- else if (!strcmp(left.pixfmt, "xyza f"))
+ else if (left.encoding == FLOAT)
process = process_f;
else
eprintf("pixel format %s is not supported, try xyza\n", left.pixfmt);