aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-19 16:07:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-19 16:07:50 +0200
commitdad54e4a62ae5d81c33530f2748f57e40363921d (patch)
tree9f63b6c16d633f96632ad645c0fd880a791d7cbb
parent87f5ede6b52e7d49c823bc070335821b489903e0 (diff)
downloadffmpeg-dad54e4a62ae5d81c33530f2748f57e40363921d.tar.gz
ffmpeg: set dts for subtitles
dts is not optional, its required for muxing, previously it was set from AVStream.pts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index aa30cd043f..4c738caadc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -837,6 +837,7 @@ static void do_subtitle_out(AVFormatContext *s,
else
pkt.pts += 90 * sub->end_display_time;
}
+ pkt.dts = pkt.pts;
write_frame(s, &pkt, ost);
}
}