diff --git a/libavformat/hls.c b/libavformat/hls.c index 95dd1c36bc..c3d83defa8 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -458,7 +458,8 @@ reload: c->end_of_segment = 1; c->cur_seq_no = v->cur_seq_no; - if (v->ctx && v->ctx->nb_streams && v->parent->nb_streams >= v->stream_offset + 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++) {