From 87a3ea3192bf5e4aafa08bca8686a2b577eae818 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 29 Apr 2014 10:28:11 +0200 Subject: [PATCH] segment: Report the current media sequence Useful for debugging mostly. --- libavformat/segment.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/segment.c b/libavformat/segment.c index 390263cdd2..3e0eb3960e 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -95,6 +95,9 @@ static int segment_hls_window(AVFormatContext *s, int last) avio_printf(seg->pb, "#EXT-X-MEDIA-SEQUENCE:%d\n", FFMAX(0, seg->number - seg->size)); + av_log(s, AV_LOG_VERBOSE, "EXT-X-MEDIA-SEQUENCE:%d\n", + FFMAX(0, seg->number - seg->size)); + for (i = FFMAX(0, seg->number - seg->size); i < seg->number; i++) { avio_printf(seg->pb, "#EXTINF:%d,\n", (int)seg->time);