瀏覽代碼

[ffmpeg] Clarify rationale for pipe(-) exclusion in _ffmpeg_filename_argument

remitamine 9 年之前
父節點
當前提交
b9f2fdd37f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/postprocessor/ffmpeg.py

+ 1 - 0
youtube_dl/postprocessor/ffmpeg.py

@@ -175,6 +175,7 @@ class FFmpegPostProcessor(PostProcessor):
         # Always use 'file:' because the filename may contain ':' (ffmpeg
         # interprets that as a protocol) or can start with '-' (-- is broken in
         # ffmpeg, see https://ffmpeg.org/trac/ffmpeg/ticket/2127 for details)
+        # Also leave '-' intact in order not to break streaming to stdout.
         return 'file:' + fn if fn != '-' else fn