[postprocessor/ffmpeg] Wrap loglevel args in encodeArgument
authorSergey M․ <dstftw@gmail.com>
Mon, 28 Jan 2019 18:59:56 +0000 (01:59 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 28 Jan 2019 18:59:56 +0000 (01:59 +0700)
youtube_dl/postprocessor/ffmpeg.py

index 33dbcad9fa989999b601f5e077d1496a780f32f1..88b9ae9be36ce2a407b505d9960722406d91f0a4 100644 (file)
@@ -218,7 +218,7 @@ class FFmpegPostProcessor(PostProcessor):
                 encodeFilename(self._ffmpeg_filename_argument(path), True)
             ])
         cmd = ([encodeFilename(self.executable, True), encodeArgument('-y')] +
-               ['-loglevel', 'repeat+info'] +
+               [encodeArgument('-loglevel'), encodeArgument('repeat+info')] +
                files_cmd +
                [encodeArgument(o) for o in opts] +
                [encodeFilename(self._ffmpeg_filename_argument(out_path), True)])