瀏覽代碼

[ffmpeg] Do not pass in byets to subprocess (Fixes #2717)

Philipp Hagemeister 11 年之前
父節點
當前提交
269aecd0c0
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      youtube_dl/postprocessor/ffmpeg.py

+ 1 - 2
youtube_dl/postprocessor/ffmpeg.py

@@ -53,8 +53,7 @@ class FFmpegPostProcessor(PostProcessor):
 
         if self._downloader.params.get('verbose', False):
             self._downloader.to_screen(u'[debug] ffmpeg command line: %s' % shell_quote(cmd))
-        bcmd = [self._downloader.encode(c) for c in cmd]
-        p = subprocess.Popen(bcmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+        p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
         stdout, stderr = p.communicate()
         if p.returncode != 0:
             stderr = stderr.decode('utf-8', 'replace')