From dac6950d9e556d5521ad7913d27a6cf83e2a90a1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Apr 2017 23:46:17 +0200 Subject: Clean up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-flop.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/blind-flop.c') diff --git a/src/blind-flop.c b/src/blind-flop.c index 39370a5..3401f7d 100644 --- a/src/blind-flop.c +++ b/src/blind-flop.c @@ -17,14 +17,11 @@ main(int argc, char *argv[]) UNOFLAGS(argc); - stream.file = ""; - stream.fd = STDIN_FILENO; - einit_stream(&stream); + eopen_stream(&stream, NULL); fprint_stream_head(stdout, &stream); efflush(stdout, ""); - if (stream.width > SIZE_MAX / stream.pixel_size) - eprintf(": video frame is too wide\n"); + echeck_frame_size(stream.width, 1, stream.pixel_size, 0, stream.file); n = stream.width * stream.pixel_size; buf = emalloc(n); image = emalloc(n); -- cgit v1.2.3-70-g09d2