qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

WebPPictureYUVAToARGB() doesn't work for View picture #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

* Call WebPEncode(config, pic) with pic being a YUVA view (pic->memory_ == 
NULL) and config.lossless = 1

* This doesn't trigger auto-conversion, but an error (NULL_PARAMETER) is 
reported instead.

Problem originates from WebPPictureYUVAToARGB(): this function has an 
unwarranted check for pic->memory_ != NULL

This happens for libwebp versions up to 0.3.1

Original issue reported on code.google.com by pascal.m...@gmail.com on 2 Dec 2013 at 2:11

GoogleCodeExporter commented 8 years ago
fixed in:
https://gerrit.chromium.org/gerrit/#/c/67969/
6f10403 fix bug due to overzealous check in WebPPictureYUVAToARGB()

Original comment by jz...@google.com on 11 Dec 2013 at 4:23