Remove douled semicolons
[libam7xxx.git] / examples / am7xxx-play.c
index 78b1f41..9961a8e 100644 (file)
@@ -557,13 +557,13 @@ static void usage(char *name)
        printf("\t-o <options>\t\ta comma separated list of input format options\n");
        printf("\t\t\t\tEXAMPLE:\n");
        printf("\t\t\t\t\t-o draw_mouse=1,framerate=100,video_size=800x480\n");
-       printf("\t-s <input path>\t\tthe rescaling method (see swscale.h)\n");
+       printf("\t-s <scaling method>\tthe rescaling method (see swscale.h)\n");
        printf("\t-u \t\t\tupscale the image if smaller than the display dimensions\n");
        printf("\t-F <format>\t\tthe image format to use (default is JPEG)\n");
        printf("\t\t\t\tSUPPORTED FORMATS:\n");
        printf("\t\t\t\t\t1 - JPEG\n");
        printf("\t\t\t\t\t2 - NV12\n");
-       printf("\t-q \t\t\tquality of jpeg sent to the device, between 1 and 100\n");
+       printf("\t-q <quality>\t\tquality of jpeg sent to the device, between 1 and 100\n");
        printf("\t-p <power level>\tpower level of device, between %x (off) and %x (maximum)\n", AM7XXX_POWER_OFF, AM7XXX_POWER_TURBO);
        printf("\t\t\t\tWARNING: Level 2 and greater require the master AND\n\t\t\t\t\t the slave connector to be plugged in.\n");
        printf("\t-h \t\t\tthis help message\n");
@@ -620,7 +620,7 @@ int main(int argc, char *argv[])
                        break;
                case 's':
                        rescale_method = atoi(optarg);
-                       switch(format) {
+                       switch(rescale_method) {
                        case SWS_FAST_BILINEAR:
                        case SWS_BILINEAR:
                        case SWS_BICUBIC:
@@ -636,7 +636,7 @@ int main(int argc, char *argv[])
                        default:
                                fprintf(stderr, "Unsupported rescale method\n");
                                ret = -EINVAL;
-                               goto out;;
+                               goto out;
                        }
                        break;
                case 'u':
@@ -654,7 +654,7 @@ int main(int argc, char *argv[])
                        default:
                                fprintf(stderr, "Unsupported format\n");
                                ret = -EINVAL;
-                               goto out;;
+                               goto out;
                        }
                        break;
                case 'q':
@@ -662,7 +662,7 @@ int main(int argc, char *argv[])
                        if (quality < 1 || quality > 100) {
                                fprintf(stderr, "Invalid quality value, must be between 1 and 100\n");
                                ret = -EINVAL;
-                               goto out;;
+                               goto out;
                        }
                        break;
                case 'h':