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/hlsenc.c | |
parent | a7c5fddac8137654cb503295c4dfb6492df43643 (diff) | |
download | ffmpeg-344f7b5a7e0d50573dec402dfe6228676f3889d9.tar.gz |
hls: Report the current media sequence
Useful for debugging mostly.
Diffstat (limited to 'libavformat/hlsenc.c')
-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 6d6caa1013..2f370ed771 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) |