[ffmpeg] fix encoding mismatch in commandline arguments (fixes #4337)

This commit is contained in:
Tsuyoshi ARAI 2015-01-02 17:20:20 +09:00
parent 772fd5cc44
commit 349ed8dcce

View File

@ -80,8 +80,8 @@ class FFmpegPostProcessor(PostProcessor):
files_cmd = []
for path in input_paths:
files_cmd.extend(['-i', encodeFilename(path, True)])
cmd = ([self._executable, '-y'] + files_cmd
files_cmd.extend([encodeArgument('-i'), encodeFilename(path, True)])
cmd = ([encodeArgument(self._executable), encodeArgument('-y')] + files_cmd
+ [encodeArgument(o) for o in opts] +
[encodeFilename(self._ffmpeg_filename_argument(out_path), True)])