diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-27 12:25:59 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-27 12:25:59 +0000 |
commit | 88f9acb2b4e892f4055d3c8ceadd77ca62040a76 (patch) | |
tree | 10271198d37ccb1161506e00c6dfa4e25a9e99e3 | |
parent | 9e171eda7bd4f91e422e980d708d048ac80df553 (diff) |
"-o -" -> use stdout
makes users of obscure OSs like window$ happy as they have no /dev/stdout
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20465 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mencoder.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c index 865a1b6a94..deb8143e22 100644 --- a/mencoder.c +++ b/mencoder.c @@ -718,7 +718,10 @@ vo_spudec=spudec_new_scaled(stream->type==STREAMTYPE_DVD?((dvd_priv_t *)(stream- 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); |