Revision 613f2dc4

View differences:

libswscale/swscale-example.c
198 198
    enum PixelFormat srcFormat, dstFormat;
199 199

  
200 200
    for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) {
201
        if (!sws_isSupportedInput(srcFormat))
201
        if (!sws_isSupportedInput(srcFormat) || !sws_isSupportedOutput(srcFormat))
202 202
            continue;
203 203

  
204 204
        for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) {
205 205
            int i, j, k;
206 206
            int res = 0;
207 207

  
208
            if (!sws_isSupportedOutput(dstFormat))
208
            if (!sws_isSupportedInput(dstFormat) || !sws_isSupportedOutput(dstFormat))
209 209
                continue;
210 210

  
211 211
            printf("%s -> %s\n",

Also available in: Unified diff