From 159b75d31af70923d624acd017aa65da92cd69c5 Mon Sep 17 00:00:00 2001 From: Urvang Joshi Date: Mon, 23 Jul 2012 12:47:24 +0530 Subject: [PATCH] cwebp output size consistency: In case of lossless too, it should report full file size. Fixes this issue: http://code.google.com/p/webp/issues/detail?id=126 Change-Id: I96e2bf09e6c9470a0267f5eea911d9b40d1addb3 --- 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 68fb5f17..09e26ec3 100644 --- a/src/enc/vp8l.c +++ b/src/enc/vp8l.c @@ -754,7 +754,7 @@ static WebPEncodingError WriteImage(const WebPPicture* const pic, goto Error; } } - *coded_size = vp8l_size; + *coded_size = CHUNK_HEADER_SIZE + riff_size; return VP8_ENC_OK; Error: