From 406ac81a3706d13deb7834de64f401c6888e5b13 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 29 May 2022 16:39:50 +0200 Subject: Compilation fixes for old ggc's --- src/lib/protocols/mpegdash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/protocols/mpegdash.c') diff --git a/src/lib/protocols/mpegdash.c b/src/lib/protocols/mpegdash.c index bc6fc8d44..6be2c1fe5 100644 --- a/src/lib/protocols/mpegdash.c +++ b/src/lib/protocols/mpegdash.c @@ -59,6 +59,8 @@ void ndpi_search_mpegdash_http(struct ndpi_detection_module_struct *ndpi_struct, if (packet->parsed_lines > 0) { + size_t i; + if (LINE_ENDS(packet->line[0], "RTSP/1.0") != 0 || LINE_ENDS(packet->line[0], ".mp4 HTTP/1.1") != 0 || LINE_ENDS(packet->line[0], ".m4s HTTP/1.1") != 0) @@ -67,7 +69,7 @@ void ndpi_search_mpegdash_http(struct ndpi_detection_module_struct *ndpi_struct, return; } - for (size_t i = 0; i < packet->parsed_lines && packet->line[i].len > 0; ++i) + for (i = 0; i < packet->parsed_lines && packet->line[i].len > 0; ++i) { if ((LINE_STARTS(packet->line[i], "Content-Type:") != 0 && LINE_ENDS(packet->line[i], "video/mp4") != 0) || -- cgit v1.2.3