Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > 020a46733f7e88c1650db87aff606663 > files > 2

mingw-dirac-1.0.2-14.mga5.src.rpm

diff -up dirac-1.0.2/util/conversion/BMPtoRGB.cpp.gcc44 dirac-1.0.2/util/conversion/BMPtoRGB.cpp
--- dirac-1.0.2/util/conversion/BMPtoRGB.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/BMPtoRGB.cpp	2009-07-09 12:34:33.390233615 +0200
@@ -102,9 +102,9 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     for (int frame = firstFrame; frame<(firstFrame+frames); ++frame) {
 
diff -up dirac-1.0.2/util/conversion/common/setstdiomode.h.gcc44 dirac-1.0.2/util/conversion/common/setstdiomode.h
--- dirac-1.0.2/util/conversion/common/setstdiomode.h.gcc44	2004-06-30 18:44:52.000000000 +0200
+++ dirac-1.0.2/util/conversion/common/setstdiomode.h	2009-07-09 12:34:50.417234715 +0200
@@ -62,13 +62,11 @@ Original author: Tim Borer
 #ifndef dirac_utilities_setstdiomode
 #define dirac_utilities_setstdiomode
 
-#include <ios>      //Defines std::ios_base
-
+#ifdef _WIN32
 namespace dirac_vu { //dirac video utilities namespace
-
-    int setstdinmode(std::ios_base::openmode);
-    int setstdoutmode(std::ios_base::openmode);
-
-}  // end namespace dirac_vu
+#include <fcntl.h>
+int _CRT_fmode = _O_BINARY;
+}
+#endif
 
 #endif // dirac_utilities_setstdiomode
diff -up dirac-1.0.2/util/conversion/RGBtoBMP.cpp.gcc44 dirac-1.0.2/util/conversion/RGBtoBMP.cpp
--- dirac-1.0.2/util/conversion/RGBtoBMP.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/RGBtoBMP.cpp	2009-07-09 12:34:33.391233743 +0200
@@ -98,9 +98,9 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Get command line arguments
     const string prefix = argv[1];
diff -up dirac-1.0.2/util/conversion/RGBtoUYVY.cpp.gcc44 dirac-1.0.2/util/conversion/RGBtoUYVY.cpp
--- dirac-1.0.2/util/conversion/RGBtoUYVY.cpp.gcc44	2008-05-27 03:29:55.000000000 +0200
+++ dirac-1.0.2/util/conversion/RGBtoUYVY.cpp	2009-07-09 12:34:33.391985515 +0200
@@ -84,12 +84,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //   cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int RGBBufferSize = 3*height*width;
diff -up dirac-1.0.2/util/conversion/RGBtoYUV411.cpp.gcc44 dirac-1.0.2/util/conversion/RGBtoYUV411.cpp
--- dirac-1.0.2/util/conversion/RGBtoYUV411.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/RGBtoYUV411.cpp	2009-07-09 12:34:33.391985515 +0200
@@ -84,12 +84,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int RGBBufferSize = 3*height*width;
diff -up dirac-1.0.2/util/conversion/RGBtoYUV420.cpp.gcc44 dirac-1.0.2/util/conversion/RGBtoYUV420.cpp
--- dirac-1.0.2/util/conversion/RGBtoYUV420.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/RGBtoYUV420.cpp	2009-07-09 12:34:33.392985922 +0200
@@ -87,12 +87,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int inBufferSize = 3*height*width;
diff -up dirac-1.0.2/util/conversion/RGBtoYUV422.cpp.gcc44 dirac-1.0.2/util/conversion/RGBtoYUV422.cpp
--- dirac-1.0.2/util/conversion/RGBtoYUV422.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/RGBtoYUV422.cpp	2009-07-09 12:34:33.393985770 +0200
@@ -84,12 +84,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int inBufferSize = 3*height*width;
diff -up dirac-1.0.2/util/conversion/RGBtoYUV444.cpp.gcc44 dirac-1.0.2/util/conversion/RGBtoYUV444.cpp
--- dirac-1.0.2/util/conversion/RGBtoYUV444.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/RGBtoYUV444.cpp	2009-07-09 12:34:33.393985770 +0200
@@ -83,12 +83,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output line buffers.
     //Conversion takes place a line at a time
diff -up dirac-1.0.2/util/conversion/UYVYtoRGB.cpp.gcc44 dirac-1.0.2/util/conversion/UYVYtoRGB.cpp
--- dirac-1.0.2/util/conversion/UYVYtoRGB.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/UYVYtoRGB.cpp	2009-07-09 12:34:33.394985619 +0200
@@ -86,12 +86,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int RGBBufferSize = 3*height*width;
diff -up dirac-1.0.2/util/conversion/UYVYtoYUV422.cpp.gcc44 dirac-1.0.2/util/conversion/UYVYtoYUV422.cpp
--- dirac-1.0.2/util/conversion/UYVYtoYUV422.cpp.gcc44	2008-02-04 14:43:02.000000000 +0100
+++ dirac-1.0.2/util/conversion/UYVYtoYUV422.cpp	2009-07-09 12:34:33.394985619 +0200
@@ -84,12 +84,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV411toRGB.cpp.gcc44 dirac-1.0.2/util/conversion/YUV411toRGB.cpp
--- dirac-1.0.2/util/conversion/YUV411toRGB.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/YUV411toRGB.cpp	2009-07-09 12:34:33.395985746 +0200
@@ -87,12 +87,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV420Down2x2.cpp.gcc44 dirac-1.0.2/util/conversion/YUV420Down2x2.cpp
--- dirac-1.0.2/util/conversion/YUV420Down2x2.cpp.gcc44	2008-10-01 02:50:27.000000000 +0200
+++ dirac-1.0.2/util/conversion/YUV420Down2x2.cpp	2009-07-09 12:34:33.396985315 +0200
@@ -240,12 +240,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int ybuffersizein = height*width;
diff -up dirac-1.0.2/util/conversion/YUV420ItoYUV422I.cpp.gcc44 dirac-1.0.2/util/conversion/YUV420ItoYUV422I.cpp
--- dirac-1.0.2/util/conversion/YUV420ItoYUV422I.cpp.gcc44	2008-11-19 00:25:21.000000000 +0100
+++ dirac-1.0.2/util/conversion/YUV420ItoYUV422I.cpp	2009-07-09 12:34:33.396985315 +0200
@@ -80,12 +80,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV420pt75filter.cpp.gcc44 dirac-1.0.2/util/conversion/YUV420pt75filter.cpp
--- dirac-1.0.2/util/conversion/YUV420pt75filter.cpp.gcc44	2008-08-14 04:35:04.000000000 +0200
+++ dirac-1.0.2/util/conversion/YUV420pt75filter.cpp	2009-07-09 12:34:33.397985722 +0200
@@ -132,12 +132,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = Yheight*Ywidth;
diff -up dirac-1.0.2/util/conversion/YUV420toRGB.cpp.gcc44 dirac-1.0.2/util/conversion/YUV420toRGB.cpp
--- dirac-1.0.2/util/conversion/YUV420toRGB.cpp.gcc44	2004-12-01 15:13:17.000000000 +0100
+++ dirac-1.0.2/util/conversion/YUV420toRGB.cpp	2009-07-09 12:34:33.397985722 +0200
@@ -87,12 +87,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV420toYUV422.cpp.gcc44 dirac-1.0.2/util/conversion/YUV420toYUV422.cpp
--- dirac-1.0.2/util/conversion/YUV420toYUV422.cpp.gcc44	2008-05-27 03:29:55.000000000 +0200
+++ dirac-1.0.2/util/conversion/YUV420toYUV422.cpp	2009-07-09 12:34:33.398985850 +0200
@@ -80,12 +80,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV422ItoYUV420I.cpp.gcc44 dirac-1.0.2/util/conversion/YUV422ItoYUV420I.cpp
--- dirac-1.0.2/util/conversion/YUV422ItoYUV420I.cpp.gcc44	2008-11-19 00:25:21.000000000 +0100
+++ dirac-1.0.2/util/conversion/YUV422ItoYUV420I.cpp	2009-07-09 12:34:33.399985698 +0200
@@ -83,12 +83,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV422toRGB.cpp.gcc44 dirac-1.0.2/util/conversion/YUV422toRGB.cpp
--- dirac-1.0.2/util/conversion/YUV422toRGB.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/YUV422toRGB.cpp	2009-07-09 12:34:33.399985698 +0200
@@ -86,12 +86,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV422toUYVY.cpp.gcc44 dirac-1.0.2/util/conversion/YUV422toUYVY.cpp
--- dirac-1.0.2/util/conversion/YUV422toUYVY.cpp.gcc44	2008-05-27 03:29:56.000000000 +0200
+++ dirac-1.0.2/util/conversion/YUV422toUYVY.cpp	2009-07-09 12:34:33.400986664 +0200
@@ -84,12 +84,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV422toYUV420.cpp.gcc44 dirac-1.0.2/util/conversion/YUV422toYUV420.cpp
--- dirac-1.0.2/util/conversion/YUV422toYUV420.cpp.gcc44	2008-02-04 14:43:02.000000000 +0100
+++ dirac-1.0.2/util/conversion/YUV422toYUV420.cpp	2009-07-09 12:34:33.400986664 +0200
@@ -80,12 +80,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output buffers.
     const int YBufferSize = height*width;
diff -up dirac-1.0.2/util/conversion/YUV444toRGB.cpp.gcc44 dirac-1.0.2/util/conversion/YUV444toRGB.cpp
--- dirac-1.0.2/util/conversion/YUV444toRGB.cpp.gcc44	2004-06-30 18:44:51.000000000 +0200
+++ dirac-1.0.2/util/conversion/YUV444toRGB.cpp	2009-07-09 12:34:33.401985674 +0200
@@ -83,12 +83,12 @@ int main(int argc, char * argv[] ) {
 
     //Set standard input and standard output to binary mode.
     //Only relevant for Windows (*nix is always binary)
-    if ( setstdinmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard input to binary mode" << endl;
-        return EXIT_FAILURE; }
-    if ( setstdoutmode(std::ios_base::binary) == -1 ) {
-        cerr << "Error: could not set standard output to binary mode" << endl;
-        return EXIT_FAILURE; }
+    //if ( setstdinmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard input to binary mode" << endl;
+    //    return EXIT_FAILURE; }
+    //if ( setstdoutmode(std::ios_base::binary) == -1 ) {
+    //    cerr << "Error: could not set standard output to binary mode" << endl;
+    //    return EXIT_FAILURE; }
 
     //Allocate memory for input and output line buffers.
     //Conversion takes place a line at a time