diff options
Diffstat (limited to 'src/blind-spectrum.c')
| -rw-r--r-- | src/blind-spectrum.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/blind-spectrum.c b/src/blind-spectrum.c index 2086ffc..3ba6191 100644 --- a/src/blind-spectrum.c +++ b/src/blind-spectrum.c @@ -33,14 +33,9 @@ main(int argc, char *argv[]) eopen_stream(&stream, NULL); eopen_stream(&spectrum, 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, spectrum.pixfmt)) + if (stream.n_chan != spectrum.n_chan || stream.encoding != spectrum.encoding) eprintf("videos use incompatible pixel formats\n"); echeck_dimensions(&spectrum, WIDTH | HEIGHT, "spectrum"); |
