changeset 20449:ba8b5e0e9b56

"-o -" -> use stdout makes users of obscure OSs like window$ happy as they have no /dev/stdout
author michael
date Fri, 27 Oct 2006 12:25:59 +0000
parents 23b59f30071f
children c53da7ea44a0
files mencoder.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mencoder.c	Fri Oct 27 11:56:43 2006 +0000
+++ b/mencoder.c	Fri Oct 27 12:25:59 2006 +0000
@@ -718,7 +718,10 @@
 spudec_set_forced_subs_only(vo_spudec,forced_subs_only);
 
 // set up output file:
-muxer_f=fopen(out_filename,"wb");
+if(!strcmp(out_filename, "-"))
+    muxer_f=stdout;
+else
+    muxer_f=fopen(out_filename,"wb");
 if(!muxer_f) {
   mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_CannotOpenOutputFile, out_filename);
   mencoder_exit(1,NULL);