decode.h,WebPIDecGetRGB: clarify output ptr validity

*last_y, *width, *height, *stride are only valid on non-NULL return

Change-Id: Iee2eeb29dd36392e2e7876d47df182a81dbb41ce
This commit is contained in:
James Zern 2017-09-22 16:58:33 -07:00
parent 3c74c645ca
commit a9c8916b87

View File

@ -340,7 +340,8 @@ WEBP_EXTERN VP8StatusCode WebPIUpdate(
// specified during call to WebPINewDecoder() or WebPINewRGB().
// *last_y is the index of last decoded row in raster scan order. Some pointers
// (*last_y, *width etc.) can be NULL if corresponding information is not
// needed.
// needed. The values in these pointers are only valid on successful (non-NULL)
// return.
WEBP_EXTERN uint8_t* WebPIDecGetRGB(
const WebPIDecoder* idec, int* last_y,
int* width, int* height, int* stride);