diff --git a/libavformat/hls.c b/libavformat/hls.c index d7f4d5b442..ac151d5ca4 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2326,7 +2326,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,