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
This commit is contained in:
Urvang Joshi 2012-07-23 12:47:24 +05:30
parent 1889e9b6cc
commit 159b75d31a

View File

@ -754,7 +754,7 @@ static WebPEncodingError WriteImage(const WebPPicture* const pic,
goto Error; goto Error;
} }
} }
*coded_size = vp8l_size; *coded_size = CHUNK_HEADER_SIZE + riff_size;
return VP8_ENC_OK; return VP8_ENC_OK;
Error: Error: