aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-sawtooth-wave.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-sawtooth-wave.c')
-rw-r--r--src/blind-sawtooth-wave.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/blind-sawtooth-wave.c b/src/blind-sawtooth-wave.c
index 213d261..25e2662 100644
--- a/src/blind-sawtooth-wave.c
+++ b/src/blind-sawtooth-wave.c
@@ -28,13 +28,7 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
- if (stream.encoding == DOUBLE)
- process = process_lf;
- else if (stream.encoding == FLOAT)
- process = process_f;
- else
- eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt);
-
+ SELECT_PROCESS_FUNCTION(&stream);
fprint_stream_head(stdout, &stream);
efflush(stdout, "<stdout>");
process(&stream);