From d05d162cb81664f292834fa5d48d623d2b6147a7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Jul 2017 15:29:43 +0200 Subject: Misc code improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-sinc-wave.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/blind-sinc-wave.c') diff --git a/src/blind-sinc-wave.c b/src/blind-sinc-wave.c index ed36ce8..0f999c5 100644 --- a/src/blind-sinc-wave.c +++ b/src/blind-sinc-wave.c @@ -34,12 +34,7 @@ main(int argc, char *argv[]) eprintf("theta0-stream must be of dimension 1x1\n"); } - 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); if (have_theta0 && strcmp(stream.pixfmt, theta0.pixfmt)) eprintf("videos use incompatible pixel formats\n"); -- cgit v1.2.3-70-g09d2