changeset 27483:2c27916c40d2

Add fflush to prevent stdout & stderr from being mixed.
author michael
date Thu, 04 Sep 2008 15:13:55 +0000
parents 88c54359eb69
children c550b2157eaa
files libswscale/swscale-example.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-example.c	Mon Sep 01 22:37:50 2008 +0000
+++ b/libswscale/swscale-example.c	Thu Sep 04 15:13:55 2008 +0000
@@ -139,6 +139,7 @@
                sws_format_name(dstFormat), dstW, dstH,
                flags,
                ssdY, ssdU, ssdV);
+        fflush(stdout);
     }
 
     end:
@@ -170,6 +171,7 @@
             printf("%s -> %s\n",
                    sws_format_name(srcFormat),
                    sws_format_name(dstFormat));
+            fflush(stdout);
 
             srcW= w;
             srcH= h;