From a9c8916b876659708cf0b1feece216dbd1ff93de Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 22 Sep 2017 16:58:33 -0700 Subject: [PATCH] decode.h,WebPIDecGetRGB: clarify output ptr validity *last_y, *width, *height, *stride are only valid on non-NULL return Change-Id: Iee2eeb29dd36392e2e7876d47df182a81dbb41ce --- src/webp/decode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webp/decode.h b/src/webp/decode.h index 3ba9808b..2165e96c 100644 --- a/src/webp/decode.h +++ b/src/webp/decode.h @@ -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);