From b3923084b9adb33f5ed723b4dba5e00e3bc9b216 Mon Sep 17 00:00:00 2001 From: Vikas Arora Date: Wed, 13 Jun 2012 13:27:00 +0530 Subject: [PATCH] Limit the maximum size of huffman Image to 16MB. This limit corresponds to default histo_bits=3 for images upto sizes 400x400. Any image higher than this dimension will bump up the histo_bits to 4 internally. Change-Id: Ic8ba3dcd50e9c588cbbc4a0457289086498ff4ee --- src/enc/vp8l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/vp8l.c b/src/enc/vp8l.c index bb090efd..e3a0f89e 100644 --- a/src/enc/vp8l.c +++ b/src/enc/vp8l.c @@ -27,7 +27,7 @@ extern "C" { #endif #define PALETTE_KEY_RIGHT_SHIFT 22 // Key for 1K buffer. -#define MAX_HUFF_IMAGE_SIZE (32 * 1024 * 1024) +#define MAX_HUFF_IMAGE_SIZE (16 * 1024 * 1024) #define MIN_HISTO_BITS 2 #define MAX_HISTO_BITS 9