summaryrefslogtreecommitdiff
path: root/libswscale/swscale-example.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-09-04 15:13:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-09-04 15:13:55 +0000
commitae9e0e8391c02635f725eca06478b6298a623510 (patch)
tree1346baa3efabcc344c6e62a8133d1beb45d40b01 /libswscale/swscale-example.c
parent1775c7fac6f70f77986dc8adab674b6d4510c7f7 (diff)
downloadffmpeg-ae9e0e8391c02635f725eca06478b6298a623510.tar.gz
Add fflush to prevent stdout & stderr from being mixed.
Originally committed as revision 27515 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale-example.c')
-rw-r--r--libswscale/swscale-example.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c
index 79e21a922a..4bb42162ef 100644
--- a/libswscale/swscale-example.c
+++ b/libswscale/swscale-example.c
@@ -139,6 +139,7 @@ static int doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcFormat
sws_format_name(dstFormat), dstW, dstH,
flags,
ssdY, ssdU, ssdV);
+ fflush(stdout);
}
end:
@@ -170,6 +171,7 @@ static void selfTest(uint8_t *src[3], int stride[3], int w, int h){
printf("%s -> %s\n",
sws_format_name(srcFormat),
sws_format_name(dstFormat));
+ fflush(stdout);
srcW= w;
srcH= h;