X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/12922aaf86ce0c0683408310b10e0961ff0d2f5c..86b31030d1c52e4901eef3ffd279ead8bf70895d:/examples/am7xxx-play.c diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index 78b1f41..9961a8e 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -557,13 +557,13 @@ static void usage(char *name) printf("\t-o \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 \t\tthe rescaling method (see swscale.h)\n"); + printf("\t-s \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 \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 \t\tquality of jpeg sent to the device, between 1 and 100\n"); printf("\t-p \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':