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-split.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/blind-split.c') diff --git a/src/blind-split.c b/src/blind-split.c index 78c569a..e92fced 100644 --- a/src/blind-split.c +++ b/src/blind-split.c @@ -28,12 +28,10 @@ main(int argc, char *argv[]) usage(); } ARGEND; - if (argc < 2 || argc % 2) + if (argc % 2 || !argc) usage(); - stream.file = ""; - stream.fd = STDIN_FILENO; - einit_stream(&stream); + eopen_stream(&stream, NULL); echeck_frame_size(stream.width, stream.height, stream.pixel_size, 0, stream.file); frame_size = stream.width * stream.height * stream.pixel_size; if (stream.frames > (size_t)SSIZE_MAX / frame_size) -- cgit v1.2.3-70-g09d2