about summary refs log tree commit diff
path: root/youtube_dl/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2016-02-06 18:51:05 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2016-02-06 18:51:05 +0100
commit7e62c2eb6d13ebf0fdd24c90c2f439177d485081 (patch)
treef67a7b8089473ceb5cf1b24ce0509b54e9c77ff8 /youtube_dl/postprocessor/ffmpeg.py
parent56401e1e5f53e126bf124699b2f62bb670078fd3 (diff)
downloadyoutube-dl-7e62c2eb6d13ebf0fdd24c90c2f439177d485081.tar.gz
youtube-dl-7e62c2eb6d13ebf0fdd24c90c2f439177d485081.tar.xz
youtube-dl-7e62c2eb6d13ebf0fdd24c90c2f439177d485081.zip
[FFmpegSubtitlesConvertorPP] fix not working when srt is used as the intermediate format between ttml/dfxp and other format
It was trying to use the ttml/dfxp file with ffmpeg, which doesn't have support for them.
I broke it in e04398e397d4a4f7e0d0994355d5a94c22441e7c.
Diffstat (limited to 'youtube_dl/postprocessor/ffmpeg.py')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index 22d7ac65a..6daa6a8b4 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -508,6 +508,7 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
 
                 with io.open(srt_file, 'wt', encoding='utf-8') as f:
                     f.write(srt_data)
+                old_file = srt_file
 
                 ext = 'srt'
                 subs[lang] = {