[FFmpeg-cvslog] r30377 - trunk/libswscale/swscale-example.c
stefano
subversion
Tue Jan 19 22:52:00 CET 2010
Author: stefano
Date: Tue Jan 19 22:52:00 2010
New Revision: 30377
Log:
Make selfTest() perform tests where both the input and output formats
are supported, avoid pointless loops.
Modified:
trunk/libswscale/swscale-example.c
Modified: trunk/libswscale/swscale-example.c
==============================================================================
--- trunk/libswscale/swscale-example.c Tue Jan 19 19:53:16 2010 (r30376)
+++ trunk/libswscale/swscale-example.c Tue Jan 19 22:52:00 2010 (r30377)
@@ -198,10 +198,16 @@ static void selfTest(uint8_t *ref[4], in
enum PixelFormat srcFormat, dstFormat;
for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) {
+ if (!sws_isSupportedInput(srcFormat))
+ continue;
+
for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) {
int i, j, k;
int res = 0;
+ if (!sws_isSupportedOutput(dstFormat))
+ continue;
+
printf("%s -> %s\n",
sws_format_name(srcFormat),
sws_format_name(dstFormat));
More information about the ffmpeg-cvslog
mailing list