[FFmpeg-devel] [PATCH] lavf/srtenc: add AVFMT_TS_NONSTRICT flag.
Clément Bœsch
ubitux at gmail.com
Sat Oct 27 00:11:03 CEST 2012
There is not really a problem in having two events at the same time.
Even if it's not perfectly correct, it helps remuxing more files
(typically our FATE sample).
---
libavformat/srtenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index 9c8c3d9..97b297e 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -96,6 +96,6 @@ AVOutputFormat ff_srt_muxer = {
.priv_data_size = sizeof(SRTContext),
.write_header = srt_write_header,
.write_packet = srt_write_packet,
- .flags = AVFMT_VARIABLE_FPS,
+ .flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT,
.subtitle_codec = AV_CODEC_ID_SUBRIP,
};
--
1.8.0
More information about the ffmpeg-devel
mailing list