diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-04-29 10:28:11 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-04-30 17:52:03 +0200 |
commit | 87a3ea3192bf5e4aafa08bca8686a2b577eae818 (patch) | |
tree | 46d2964d452c280d830edbc9136bf50d3e345b6c /libavformat/segment.c | |
parent | 344f7b5a7e0d50573dec402dfe6228676f3889d9 (diff) | |
download | ffmpeg-87a3ea3192bf5e4aafa08bca8686a2b577eae818.tar.gz |
segment: Report the current media sequence
Useful for debugging mostly.
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 3 |
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); |