swscale-test: change order tests are run, maintaining the same algorithm for
authorRamiro Polla <ramiro.polla@gmail.com>
Fri, 23 Jul 2010 20:26:32 +0000 (20:26 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Fri, 23 Jul 2010 20:26:32 +0000 (20:26 +0000)
sequential geometries instead of running all algorithms sequentially for each
geometry.

Originally committed as revision 31775 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale-test.c

index c1dca19..d29fe57 100644 (file)
@@ -218,9 +218,9 @@ static void selfTest(uint8_t *ref[4], int refStride[4], int w, int h)
                    av_pix_fmt_descriptors[dstFormat].name);
             fflush(stdout);
 
+            for (k = 0; flags[k] && !res; k++)
             for (i = 0; dstW[i] && !res; i++)
                 for (j = 0; dstH[j] && !res; j++)
-                    for (k = 0; flags[k] && !res; k++)
                         res = doTest(ref, refStride, w, h, srcFormat, dstFormat,
                                      srcW, srcH, dstW[i], dstH[j], flags[k]);
         }