Bug with -F argument fixed

This commit is contained in:
Francois-Olivier Devaux 2004-10-08 07:08:25 +00:00
parent 2410db2ae7
commit 0d4a38f3a5

View File

@ -332,7 +332,7 @@ int main(int argc, char **argv)
while (1) {
int c = getopt(argc, argv,
"i:o:r:q:f:t:n:c:b:x:p:s:d:h:P:S:E:M:R:T:C:I:W:F");
"i:o:r:q:f:t:n:c:b:x:p:s:d:h:P:S:E:M:R:T:C:I:W:F:");
if (c == -1)
break;
switch (c) {
@ -604,7 +604,7 @@ int main(int argc, char **argv)
/* ------------------------------------------------------ */
case 'F': /* Video frame rate */
if (sscanf(optarg, "%d", &frame_rate) != 1) {
fprintf(stderr, "-f argument error");
fprintf(stderr, "-F argument error");
return 1;
}
break;