]> git.sesse.net Git - ffmpeg/blobdiff - compat/getopt.c
lavu: Add av_gettime_relative
[ffmpeg] / compat / getopt.c
index 7c646f6a0545feb766995ffcaaff2c7b0689a0cc..b7adf60e2fdc91c274d368e3147a46c9343a0f22 100644 (file)
@@ -53,7 +53,7 @@ static int getopt(int argc, char *argv[], char *opts)
             return EOF;
         }
     optopt = c = argv[optind][sp];
-    if (c == ':' || (cp = strchr(opts, c)) == NULL) {
+    if (c == ':' || !(cp = strchr(opts, c))) {
         fprintf(stderr, ": illegal option -- %c\n", c);
         if (argv[optind][++sp] == '\0') {
             optind++;