From 39bcd6edcf82f15f11b123ee2179c41f7b4d6b9f Mon Sep 17 00:00:00 2001 From: stefano Date: Wed, 20 Jan 2010 00:22:31 +0000 Subject: Avoid more pointless tests, the input and output formats need to be supported both as input and as output, as the conversion performed is: yuva420p -> src -> dst -> yuva420p. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30379 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale-example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c index c8faf80f55..a812ee5963 100644 --- a/libswscale/swscale-example.c +++ b/libswscale/swscale-example.c @@ -198,14 +198,14 @@ static void selfTest(uint8_t *ref[4], int refStride[4], int w, int h) enum PixelFormat srcFormat, dstFormat; for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) { - if (!sws_isSupportedInput(srcFormat)) + if (!sws_isSupportedInput(srcFormat) || !sws_isSupportedOutput(srcFormat)) continue; for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) { int i, j, k; int res = 0; - if (!sws_isSupportedOutput(dstFormat)) + if (!sws_isSupportedInput(dstFormat) || !sws_isSupportedOutput(dstFormat)) continue; printf("%s -> %s\n", -- cgit v1.2.3