[FFmpeg-devel] [PATCH] avformat/hls: tag as AVFMT_TS_DISCONT
Aman Gupta
ffmpeg at tmm1.net
Wed May 16 20:17:58 EEST 2018
From: Aman Gupta <aman at tmm1.net>
HLS streams can contain discontinuities. Mark the format as such.
This triggers various discontinuity fixes in lavf/utils.c and fftools
Signed-off-by: Aman Gupta <aman at tmm1.net>
---
libavformat/hls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 4ee4be769d..3199b0ac8d 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2277,7 +2277,7 @@ AVInputFormat ff_hls_demuxer = {
.long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"),
.priv_class = &hls_class,
.priv_data_size = sizeof(HLSContext),
- .flags = AVFMT_NOGENSEARCH,
+ .flags = AVFMT_NOGENSEARCH | AVFMT_TS_DISCONT,
.read_probe = hls_probe,
.read_header = hls_read_header,
.read_packet = hls_read_packet,
--
2.14.2
More information about the ffmpeg-devel
mailing list