Commit 7fa06683 authored by stefano's avatar stefano

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: file:///var/local/repositories/mplayer/trunk/libswscale@30379 b3059339-0415-0410-9bf9-f77b7e298cf2
parent d2bff8b5
...@@ -198,14 +198,14 @@ static void selfTest(uint8_t *ref[4], int refStride[4], int w, int h) ...@@ -198,14 +198,14 @@ static void selfTest(uint8_t *ref[4], int refStride[4], int w, int h)
enum PixelFormat srcFormat, dstFormat; enum PixelFormat srcFormat, dstFormat;
for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) { for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) {
if (!sws_isSupportedInput(srcFormat)) if (!sws_isSupportedInput(srcFormat) || !sws_isSupportedOutput(srcFormat))
continue; continue;
for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) { for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) {
int i, j, k; int i, j, k;
int res = 0; int res = 0;
if (!sws_isSupportedOutput(dstFormat)) if (!sws_isSupportedInput(dstFormat) || !sws_isSupportedOutput(dstFormat))
continue; continue;
printf("%s -> %s\n", printf("%s -> %s\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment