From 14221340d396e6742c72caaa8e60b66760090c19 Mon Sep 17 00:00:00 2001 From: Sergey Dryabzhinsky Date: Tue, 1 Jun 2021 19:06:04 +0300 Subject: [PATCH] Fix miscast --- hls/ngx_rtmp_hls_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hls/ngx_rtmp_hls_module.c b/hls/ngx_rtmp_hls_module.c index cc95ae0..5d7dc4a 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -633,7 +633,7 @@ ngx_rtmp_hls_write_playlist(ngx_rtmp_session_t *s) prev_key_id = 0; - for (i = start_i; i < ctx->nfrags; i++) { + for (i = start_i; i < (ngx_int_t)ctx->nfrags; i++) { f = ngx_rtmp_hls_get_frag(s, i); if (i == 0 && f->datetime && f->datetime->len > 0) { p = ngx_snprintf(buffer, sizeof(buffer), "#EXT-X-PROGRAM-DATE-TIME:");