mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
Merge commit '03f2de5856ec8571fcf5f4cf6dccc713294af545'
* commit '03f2de5856ec8571fcf5f4cf6dccc713294af545': aviocat: Check the argv array length before reading element i+1 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
9f3a555b84
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user