Commit 03f2de58 authored by Martin Storsjö's avatar Martin Storsjö

aviocat: Check the argv array length before reading element i+1

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent aab40bbf
......@@ -43,7 +43,7 @@ int main(int argc, char **argv)
avformat_network_init();
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-b")) {
if (!strcmp(argv[i], "-b") && i + 1 < argc) {
bps = atoi(argv[i + 1]);
i++;
} else if (!input_url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment