[FFmpeg-cvslog] lavf/srtenc: add AVFMT_TS_NONSTRICT flag.

Clément Bœsch git at videolan.org
Sun Oct 28 20:42:44 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sat Oct 27 00:01:49 2012 +0200| [3d6a246b4b92aca9e2a3992c54e45eb501f4de2f] | committer: Clément Bœsch

lavf/srtenc: add AVFMT_TS_NONSTRICT flag.

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).

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d6a246b4b92aca9e2a3992c54e45eb501f4de2f
---

 libavformat/srtenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index 8338238..b704920 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -92,6 +92,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,
 };



More information about the ffmpeg-cvslog mailing list