mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
hls: check that the streams have been initialized before checking their discard flags.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ffda8f0f0f
commit
cc913f7490
@ -427,7 +427,7 @@ reload:
|
||||
c->end_of_segment = 1;
|
||||
c->cur_seq_no = v->cur_seq_no;
|
||||
|
||||
if (v->ctx && v->ctx->nb_streams) {
|
||||
if (v->ctx && v->ctx->nb_streams && v->parent->nb_streams >= v->stream_offset + v->ctx->nb_streams) {
|
||||
v->needed = 0;
|
||||
for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams;
|
||||
i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user