Check the user submitted value for the rescaling method.
authorReto Schneider <github@reto-schneider.ch>
Tue, 20 Mar 2012 20:16:14 +0000 (21:16 +0100)
committerReto Schneider <github@reto-schneider.ch>
Tue, 20 Mar 2012 21:49:49 +0000 (22:49 +0100)
examples/am7xxx-play.c

index a29212c..67050c3 100644 (file)
@@ -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: