]> git.sesse.net Git - cubemap/commitdiff
Make the Metacube block size warning a bit less aggressive, as WebM seems to generate...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 14 Aug 2013 23:02:06 +0000 (01:02 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 14 Aug 2013 23:02:06 +0000 (01:02 +0200)
httpinput.cpp

index 0d94913d4f2c06c0f95b4eb18a0df781df1f1eb8..3bee5d675fde7385fc61307ac1ad14d8648f9edc 100644 (file)
@@ -458,7 +458,7 @@ void HTTPInput::process_data(char *ptr, size_t bytes)
                uint32_t size = ntohl(hdr->size);
                uint32_t flags = ntohl(hdr->flags);
 
                uint32_t size = ntohl(hdr->size);
                uint32_t flags = ntohl(hdr->flags);
 
-               if (size > 65535) {
+               if (size > 262144) {
                        log(WARNING, "[%s] Metacube block of %d bytes (flags=%x); corrupted header?",
                                url.c_str(), size, flags);
                }
                        log(WARNING, "[%s] Metacube block of %d bytes (flags=%x); corrupted header?",
                                url.c_str(), size, flags);
                }