Revision 731c04ad

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))
202
            continue;
203

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

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

  
205 211
            printf("%s -> %s\n",
206 212
                   sws_format_name(srcFormat),
207 213
                   sws_format_name(dstFormat));

Also available in: Unified diff