From 2e6d8b219a9ca586fc565b1930cdfb73e34d0b12 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 16 Apr 2013 17:24:06 +0400 Subject: [PATCH] fixed m3u8 parser --- 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 4852182..af762f1 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -830,7 +830,7 @@ ngx_rtmp_hls_restore_stream(ngx_rtmp_session_t *s) f->id = 0; mag = 1; - for (pa = last - 4; pa != p; pa--) { + for (pa = last - 4; pa >= p; pa--) { if (*pa < '0' || *pa > '9') { break; }