mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
aviocat: Check the argv array length before reading element i+1
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
aab40bbfd5
commit
03f2de5856
@ -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