]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg_opt.c
avfilter/xbr: refactor px calculation in FILT[234]
[ffmpeg] / ffmpeg_opt.c
index 1f281f605a1e3e7f026610bfbdd56be6aa882b70..ae05bf0571eec828548a71d125e02b27d5a76a53 100644 (file)
@@ -231,6 +231,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, ',')) {