summaryrefslogtreecommitdiff
path: root/vpxenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'vpxenc.c')
-rw-r--r--vpxenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vpxenc.c b/vpxenc.c
index b64b6cf44..7eff97b13 100644
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -1703,6 +1703,10 @@ int main(int argc, const char **argv_) {
* codec.
*/
argv = argv_dup(argc - 1, argv_ + 1);
+ if (!argv) {
+ fprintf(stderr, "Error allocating argument list\n");
+ return EXIT_FAILURE;
+ }
parse_global_config(&global, argv);
if (argc < 3) usage_exit();