From 0a27b143367ba38c0605b81867ba90b2c304f190 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Thu, 22 May 2008 22:24:16 +0000 Subject: [PATCH] Fixed segfault in --aspect scanning SVN-Revision: 5509 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a6ee4e75d..c85ede65e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -315,7 +315,7 @@ static bool parse_commandline(int argc, char** argv) { int aspect_width = 4; int aspect_height = 3; - if(sscanf(argv[++i], "%d:%d", &aspect_width, &aspect_height) != 2) { + if(sscanf(argv[i], "%d:%d", &aspect_width, &aspect_height) != 2) { print_usage(argv[0]); throw std::runtime_error("Invalid aspect spec, should be WIDTH:HEIGHT"); } else { -- 2.11.0