summaryrefslogtreecommitdiff
path: root/avconv_opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'avconv_opt.c')
-rw-r--r--avconv_opt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/avconv_opt.c b/avconv_opt.c
index 6d43bc1609..74e235b6d5 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -213,6 +213,8 @@ static int opt_map(void *optctx, const char *opt, const char *arg)
arg++;
}
map = av_strdup(arg);
+ if (!map)
+ return AVERROR(ENOMEM);
/* parse sync stream first, just pick first matching stream */
if (sync = strchr(map, ',')) {