minor bugfix in the -v output
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Jan 2002 15:54:44 +0000 (15:54 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Jan 2002 15:54:44 +0000 (15:54 +0000)
Originally committed as revision 4305 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale.c

index 3fcfe7e..07cacfa 100644 (file)
@@ -1284,8 +1284,12 @@ SwsContext *getSwsContext(int srcW, int srcH, int srcFormat, int dstW, int dstH,
                if(dstFormat==IMGFMT_BGR24)
                        printf("SwScaler: using %s YV12->BGR24 Converter\n",
                                cpuCaps.hasMMX2 ? "MMX2" : (cpuCaps.hasMMX ? "MMX" : "C"));
-               else
-                       printf("SwScaler: using %s YV12->BGR Converter\n", cpuCaps.hasMMX ? "MMX" : "C");//FIXME print format
+               else if(dstFormat==IMGFMT_BGR32)
+                       printf("SwScaler: using %s YV12->BGR32 Converter\n", cpuCaps.hasMMX ? "MMX" : "C");
+               else if(dstFormat==IMGFMT_BGR16)
+                       printf("SwScaler: using %s YV12->BGR16 Converter\n", cpuCaps.hasMMX ? "MMX" : "C");
+               else if(dstFormat==IMGFMT_BGR15)
+                       printf("SwScaler: using %s YV12->BGR15 Converter\n", cpuCaps.hasMMX ? "MMX" : "C");
 
                printf("SwScaler: %dx%d -> %dx%d\n", srcW, srcH, dstW, dstH);
        }