[FFmpegSubtitlesConvertorPP] remove unused variable
[youtube-dl] / youtube_dl / postprocessor / ffmpeg.py
index 05f2f06234d117a096d81eb01b482c85efad452e..380bc6f292f2390fdf5dabd131a20184ba8334df 100644 (file)
@@ -510,7 +510,6 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
                     f.write(srt_data)
                 old_file = srt_file
 
-                ext = 'srt'
                 subs[lang] = {
                     'ext': 'srt',
                     'data': srt_data
@@ -518,6 +517,8 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
 
                 if new_ext == 'srt':
                     continue
+                else:
+                    sub_filenames.append(srt_file)
 
             self.run_ffmpeg(old_file, new_file, ['-f', new_format])