diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-04-29 10:07:03 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-04-30 17:51:50 +0200 |
commit | 344f7b5a7e0d50573dec402dfe6228676f3889d9 (patch) | |
tree | a0bdef5833bcd6027d3ee5a7f2d063a571805653 /libavformat | |
parent | a7c5fddac8137654cb503295c4dfb6492df43643 (diff) | |
download | ffmpeg-streaming-344f7b5a7e0d50573dec402dfe6228676f3889d9.zip ffmpeg-streaming-344f7b5a7e0d50573dec402dfe6228676f3889d9.tar.gz |
hls: Report the current media sequence
Useful for debugging mostly.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/hlsenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 6d6caa1..2f370ed 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -147,6 +147,9 @@ static int hls_window(AVFormatContext *s, int last) avio_printf(hls->pb, "#EXT-X-MEDIA-SEQUENCE:%"PRId64"\n", FFMAX(0, hls->sequence - hls->size)); + av_log(s, AV_LOG_VERBOSE, "EXT-X-MEDIA-SEQUENCE:%"PRId64"\n", + FFMAX(0, hls->sequence - hls->size)); + for (en = hls->list; en; en = en->next) { avio_printf(hls->pb, "#EXTINF:%d,\n", en->duration); if (hls->baseurl) |