[FFmpeg-devel] [PATCH 07/10] libavcodec/ass.c: increase hardcoded timestamp for infinite duration
Aman Gupta
ffmpeg at tmm1.net
Wed Jan 6 08:41:39 CET 2016
From: Aman Gupta <aman at tmm1.net>
before this change, ffmpeg would sometimes generate invalid ASS events
when dealing with mpegts streams that had a large start_time:
Dialogue: 0,20:57:07.37,9:59:59.99,Default,,0,0,0,,(upbeat music playing)
---
libavcodec/ass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ass.c b/libavcodec/ass.c
index 336c308..0484db4 100644
--- a/libavcodec/ass.c
+++ b/libavcodec/ass.c
@@ -92,7 +92,7 @@ int ff_ass_subtitle_header_default(AVCodecContext *avctx)
static void insert_ts(AVBPrint *buf, int ts)
{
if (ts == -1) {
- av_bprintf(buf, "9:59:59.99,");
+ av_bprintf(buf, "999:59:59.99,");
} else {
int h, m, s;
--
2.5.3
More information about the ffmpeg-devel
mailing list