[FFmpeg-cvslog] ffmpeg: set dts for subtitles
Michael Niedermayer
git at videolan.org
Mon May 19 18:33:56 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 19 16:07:50 2014 +0200| [dad54e4a62ae5d81c33530f2748f57e40363921d] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dad54e4a62ae5d81c33530f2748f57e40363921d
---
ffmpeg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index aa30cd0..4c738ca 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);
}
}
More information about the ffmpeg-cvslog
mailing list