aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-chroma-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-chroma-key.c')
-rw-r--r--src/blind-chroma-key.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/blind-chroma-key.c b/src/blind-chroma-key.c
index f670317..e9e8bcb 100644
--- a/src/blind-chroma-key.c
+++ b/src/blind-chroma-key.c
@@ -18,13 +18,7 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
eopen_stream(&key, argv[0]);
- if (!strcmp(stream.pixfmt, "xyza"))
- process = process_lf;
- else if (!strcmp(stream.pixfmt, "xyza f"))
- process = process_f;
- else
- eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt);
-
+ SELECT_PROCESS_FUNCTION(&stream);
if (strcmp(stream.pixfmt, key.pixfmt))
eprintf("videos use incompatible pixel formats\n");