Browse Source

hls: Report the current media sequence

Useful for debugging mostly.
tags/n2.3
Luca Barbato 11 years ago
parent
commit
344f7b5a7e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/hlsenc.c

+ 3
- 0
libavformat/hlsenc.c View File

@@ -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)


Loading…
Cancel
Save