[FFmpeg-devel] [PATCH V1 1/4] lavf/flvdec: set AVFMT_TS_DISCONT flag on FLV demuxer

Jun Zhao mypopydev at gmail.com
Mon Mar 30 11:22:51 EEST 2020


From: Jun Zhao <barryjzhao at tencent.com>

There have been some reports about FLV timestamp discontinuities present.
e,g, the file recorded from live RTMP FLV streaming, so add
AVFMT_TS_DISCONT flag on FLV demuxer and also update the fate test
fate-filter-aresample for test sample nellymoser-discont.flv.

BTW: live_flv demuxer also enabled the AVFMT_TS_DISCONT flag.

Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
 libavformat/flvdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 7c3e5b0..82afc31 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1365,6 +1365,7 @@ AVInputFormat ff_flv_demuxer = {
     .read_close     = flv_read_close,
     .extensions     = "flv",
     .priv_class     = &flv_class,
+    .flags          = AVFMT_TS_DISCONT
 };
 
 static const AVClass live_flv_class = {
-- 
2.7.4



More information about the ffmpeg-devel mailing list