diff options
Diffstat (limited to 'src/blind-split.c')
| -rw-r--r-- | src/blind-split.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 = "<stdin>"; - 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) |
