Commit 9f3a555b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '03f2de58'

* commit '03f2de58':
  aviocat: Check the argv array length before reading element i+1
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d2a7314f 03f2de58
...@@ -43,7 +43,7 @@ int main(int argc, char **argv) ...@@ -43,7 +43,7 @@ int main(int argc, char **argv)
avformat_network_init(); avformat_network_init();
for (i = 1; i < argc; i++) { for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-b")) { if (!strcmp(argv[i], "-b") && i + 1 < argc) {
bps = atoi(argv[i + 1]); bps = atoi(argv[i + 1]);
i++; i++;
} else if (!input_url) { } 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