[FFmpeg-devel] [PATCH] avformat/hls: inherite AVInputFormat.flags from underlying demuxer
Zhang Rui
bbcallen at gmail.com
Tue Jul 16 10:44:47 CEST 2013
FFplay need flag AVFMT_TS_DISCONT to determain max_frame_duration.
---
libavformat/hls.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 95bbd45..95a65df 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -581,6 +581,8 @@ static int hls_read_header(AVFormatContext *s)
goto fail;
snprintf(bitrate_str, sizeof(bitrate_str), "%d", v->bandwidth);
+ s->iformat->flags |= (in_fmt->flags & AVFMT_TS_DISCONT);
+
/* Create new AVprogram for variant i */
program = av_new_program(s, i);
if (!program)
--
1.8.2.1
More information about the ffmpeg-devel
mailing list