One more type cast

This commit is contained in:
Sergey Dryabzhinsky 2021-06-02 20:43:18 +03:00
parent a4a1343bb8
commit ca1f3eeaa2

View file

@ -586,7 +586,7 @@ ngx_rtmp_hls_write_playlist(ngx_rtmp_session_t *s)
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
"hls: found starting fragment=%i", start_i);
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 (f->duration > max_frag) {
max_frag = (ngx_uint_t) (f->duration + .5);