res = WebPDecodeRGBA(data, data_size, &width, &height);This does not work if the encoding is the palette type.WebPDecoderConfig config;
WebPDecBuffer* const output_buffer = &config.output;WebPBitstreamFeatures* const bitstream = &config.input;WebPGetFeatures(data, length, bitstream);
output_buffer->colorspace = MODE_RGBA;VP8StatusCode status = WebPDecode(data, length, &config);broke it down into pieces and the status code was 3 (VP8_STATUS_BITSTREAM_ERROR)
AYE, thanks for the input but I finally figured it out:I added some padding to the buffer (it was only 32 bytes) and it worked again!
For some reason if the input data is too small, the algorithm fails! You have to add padding.ARGH! LOL. That was a lot of pain.
Hi,On Sat, May 1, 2021 at 5:18 AM jdl0624 <neverwi...@gmail.com> wrote:AYE, thanks for the input but I finally figured it out:I added some padding to the buffer (it was only 32 bytes) and it worked again!ah! That's interesting, and could be an invalid check in the libwebp code.Could you open a bug in the tracker, please? (or just send me the 32-byte bitstream)