From: Reto Schneider Date: Tue, 20 Mar 2012 20:16:14 +0000 (+0100) Subject: Check the user submitted value for the rescaling method. X-Git-Tag: v0.1.0~1^2~9^2~4 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/70329b82b7a0e5ba226841e3a8f3a9b09e420e3e?ds=sidebyside;hp=efe749ba4b8d59946ed3f4a7754bee41797399d5 Check the user submitted value for the rescaling method. --- diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index a29212c..67050c3 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -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: