]> git.sesse.net Git - ffmpeg/blobdiff - compat/getopt.c
Changelog: add "H.261 RTP payload format (RFC 4587)"
[ffmpeg] / compat / getopt.c
index 9a9c5421dea585cf52c308e5d2e77c8475501991..41a641f7c8a9b0fd5cc5f2837dde3c0fb54ed260 100644 (file)
@@ -54,7 +54,7 @@ static int getopt(int argc, char *argv[], char *opts)
         }
     }
     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++;