mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
Merge commit '87a3ea3192bf5e4aafa08bca8686a2b577eae818'
* commit '87a3ea3192bf5e4aafa08bca8686a2b577eae818': segment: Report the current media sequence Conflicts: libavformat/segment.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
67979b5936
@ -246,6 +246,9 @@ static int segment_list_open(AVFormatContext *s)
|
||||
avio_printf(seg->list_pb, "#EXT-X-ALLOW-CACHE:%s\n",
|
||||
seg->list_flags & SEGMENT_LIST_FLAG_CACHE ? "YES" : "NO");
|
||||
|
||||
av_log(s, AV_LOG_VERBOSE, "EXT-X-MEDIA-SEQUENCE:%d\n",
|
||||
seg->segment_list_entries->index);
|
||||
|
||||
for (entry = seg->segment_list_entries; entry; entry = entry->next)
|
||||
max_duration = FFMAX(max_duration, entry->end_time - entry->start_time);
|
||||
avio_printf(seg->list_pb, "#EXT-X-TARGETDURATION:%"PRId64"\n", (int64_t)ceil(max_duration));
|
||||
|
Loading…
Reference in New Issue
Block a user