mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
hls: use av_compare_ts() instead of comparing apples to oranges.
Fixes Ticket983 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1c585dddbb
commit
7123e9506b
@ -646,8 +646,10 @@ start:
|
||||
}
|
||||
/* Check if this stream has the packet with the lowest dts */
|
||||
if (var->pkt.data) {
|
||||
struct variant *minvar = c->variants[minvariant];
|
||||
if (minvariant < 0 ||
|
||||
var->pkt.dts < c->variants[minvariant]->pkt.dts)
|
||||
av_compare_ts(var->pkt.dts, var->ctx->streams[var->pkt.stream_index]->time_base,
|
||||
minvar->pkt.dts, minvar->ctx->streams[minvar->pkt.stream_index]->time_base) > 0)
|
||||
minvariant = i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user