aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/files
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-05-31 18:19:48 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-05-31 18:19:48 +0000
commit0aafe9ecf65ede267529a84bec5572dca0875a0b (patch)
tree87f279f707fd52ffe1c085aa29a9e08315117386 /multimedia/mjpegtools/files
parent12ea1683e4089cb3586ca29f0ea04c1a4bfd76e7 (diff)
downloadports-0aafe9ecf65ede267529a84bec5572dca0875a0b.tar.gz
ports-0aafe9ecf65ede267529a84bec5572dca0875a0b.zip
Notes
Diffstat (limited to 'multimedia/mjpegtools/files')
-rw-r--r--multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp b/multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp
new file mode 100644
index 000000000000..27772b647f76
--- /dev/null
+++ b/multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp
@@ -0,0 +1,40 @@
+--- lavtools/divxdec.cpp.orig Wed May 29 19:02:12 2002
++++ lavtools/divxdec.cpp Wed May 29 20:08:34 2002
+@@ -1284,7 +1284,7 @@
+ exit (1);
+ }
+
+-FILE* real_stdout;
++FILE real_stdout;
+
+ int
+ main (int argc, char **argv)
+@@ -1309,8 +1309,8 @@
+ std::cout.rdbuf ( std::cerr.rdbuf () );
+ //
+ // 4. keep old stdout FILE, and use stderr in its place (for printf ("...") ; )
+- real_stdout = stdout ;
+- stdout = stderr;
++ real_stdout = *stdout ;
++ *stdout = *stderr;
+
+ displayGreeting();
+
+@@ -1733,7 +1733,7 @@
+ if ( 0 == strcmp ( "-", filenameYUV ) )
+ {
+ //output.fdYUV = FD_STDOUT;
+- output.fdYUV = fileno ( real_stdout );
++ output.fdYUV = fileno ( &real_stdout );
+ }
+ else
+ {
+@@ -2042,7 +2042,7 @@
+ freeAll ();
+ // reassign cout, stdout to their original values.
+ std::cout.rdbuf ( real_cout );
+- stdout = real_stdout;
++ *stdout = real_stdout;
+
+ mjpeg_info ( " " );
+ mjpeg_info ( "Done. %i frames", output.processedFrames );