[xiph-commits] r8611 - trunk/ffmpeg2theora

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Tue Jan 4 10:41:16 PST 2005


Author: j
Date: 2005-01-04 10:41:15 -0800 (Tue, 04 Jan 2005)
New Revision: 8611

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
add /dev/stdout to possible files to output to stdout on win32

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2005-01-04 18:24:00 UTC (rev 8610)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2005-01-04 18:41:15 UTC (rev 8611)
@@ -1005,7 +1005,7 @@
 	if (av_open_input_file(&convert->context, inputfile_name, input_fmt, 0, NULL) >= 0){
 			if (av_find_stream_info (convert->context) >= 0){
 #ifdef WIN32
-				if(!strcmp(outputfile_name,"-")){
+				if(!strcmp(outputfile_name,"-") || !strcmp(outputfile_name,"/dev/stdout")){
 					_setmode(_fileno(stdout), _O_BINARY);
 					info.outfile = stdout;
 				}



More information about the commits mailing list