diff options
Diffstat (limited to 'src/blind-arithm.c')
| -rw-r--r-- | src/blind-arithm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/blind-arithm.c b/src/blind-arithm.c index 4c6ca14..c5d3947 100644 --- a/src/blind-arithm.c +++ b/src/blind-arithm.c @@ -105,10 +105,15 @@ main(int argc, char *argv[]) frames = streams[i].frames; } + if (streams->alpha) + CHECK_ALPHA(streams); + CHECK_N_CHAN(streams, 1, 3 + !!streams->alpha); if (streams->encoding == DOUBLE) process = get_process_lf(operation); - else + else if (streams->encoding == FLOAT) process = get_process_f(operation); + else + eprintf("pixel format %s is not supported, try xyza\n", streams->pixfmt); tmp = streams->frames, streams->frames = frames; fprint_stream_head(stdout, streams); |
