allow WebPINewRGB/YUVA to be passed a NULL output buffer.

If a NULL pre-allocated buffer is passed, a buffer will be automatically
allocated.

+ add some parameter checks.

reported in http://code.google.com/p/webp/issues/detail?id=139

Change-Id: I9e14ed97db30ee12e46b5e92aac7eeaaeb99bfd5
This commit is contained in:
Pascal Massimino
2013-01-25 02:04:01 -08:00
parent 126c035f3f
commit b7adf37621
3 changed files with 54 additions and 12 deletions

4
NEWS
View File

@ -1,3 +1,7 @@
- next version:
* WebPINewRGB/WebPINewYUVA accept being passed a NULL output buffer
and will perform auto-allocation.
- 10/30/12: version 0.2.1
* Various security related fixes
* cwebp.exe: fix import errors on Windows XP