X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/e73c33d0a4c2f4695f58a19b2a0a06af3b0353bd..86b31030d1c52e4901eef3ffd279ead8bf70895d:/examples/am7xxx-play.c diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index 531c156..9961a8e 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -557,7 +557,7 @@ 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"); @@ -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':