summaryrefslogtreecommitdiff
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-04-29 10:28:11 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-04-30 17:52:03 +0200
commit87a3ea3192bf5e4aafa08bca8686a2b577eae818 (patch)
tree46d2964d452c280d830edbc9136bf50d3e345b6c /libavformat/segment.c
parent344f7b5a7e0d50573dec402dfe6228676f3889d9 (diff)
downloadffmpeg-87a3ea3192bf5e4aafa08bca8686a2b577eae818.tar.gz
segment: Report the current media sequence
Useful for debugging mostly.
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c3
1 files changed, 3 insertions, 0 deletions
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);