mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: hls: Avoid reading outside of the allocated array Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
9c00f9ada6
@ -724,7 +724,8 @@ start:
|
||||
/* Check if this stream still is on an earlier segment number, or
|
||||
* has the packet with the lowest dts */
|
||||
if (var->pkt.data) {
|
||||
struct variant *minvar = c->variants[minvariant];
|
||||
struct variant *minvar = minvariant < 0 ?
|
||||
NULL : c->variants[minvariant];
|
||||
if (minvariant < 0 || var->cur_seq_no < minvar->cur_seq_no) {
|
||||
minvariant = i;
|
||||
} else if (var->cur_seq_no == minvar->cur_seq_no) {
|
||||
|
Loading…
Reference in New Issue
Block a user