From 835df7bd1e81852062dd70ce1a054fc9b510e50f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Jul 2017 22:12:23 +0200 Subject: Fix blind-kernel and blind-temporal-mean,d add blind-{spatial,temporal}-arithm and blind-spatial-mean, and add support for multiple streams in blind-arithm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stream.c') diff --git a/src/stream.c b/src/stream.c index 46fed64..b69f9a5 100644 --- a/src/stream.c +++ b/src/stream.c @@ -487,7 +487,7 @@ nprocess_multiple_streams(int status, struct stream *streams, size_t n_streams, while (n_streams) { n = SIZE_MAX; for (i = 0; i < n_streams; i++) { - if (streams[i].ptr < sizeof(streams->buf) && !enread_stream(status, streams + i, SIZE_MAX)) { + if (streams[i].ptr < streams->pixel_size && !enread_stream(status, streams + i, SIZE_MAX)) { close(streams[i].fd); streams[i].fd = -1; if (shortest) -- cgit v1.2.3-70-g09d2