Commit 07440c93 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'eb33ba04'

* commit 'eb33ba04':
  hls: Return all packets from a previous variant before moving on to the next one

Conflicts:
	libavformat/hls.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents f7bc03bc eb33ba04
......@@ -702,11 +702,13 @@ start:
}
}
}
/* Check if this stream has the packet with the lowest dts */
/* Check if this stream still is on an earlier segment number, or
* has the packet with the lowest dts */
if (var->pkt.data) {
if(minvariant < 0) {
if (minvariant < 0 ||
var->cur_seq_no < c->variants[minvariant]->cur_seq_no) {
minvariant = i;
} else {
} else if (var->cur_seq_no == c->variants[minvariant]->cur_seq_no) {
struct variant *minvar = c->variants[minvariant];
int64_t dts = var->pkt.dts;
int64_t mindts = minvar->pkt.dts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment