From 224e8d4630648eb4f4d0987677be21a3f9a42461 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Tue, 19 Mar 2013 02:45:27 -0700 Subject: [PATCH] add doc precision about WebPDemuxPartial() it wasn't clear the data can be incomplete Change-Id: I1482379aaea31e08a65c90f15e32edec2472e17e --- src/webp/demux.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/webp/demux.h b/src/webp/demux.h index e227cc14..2a999cd0 100644 --- a/src/webp/demux.h +++ b/src/webp/demux.h @@ -81,14 +81,13 @@ enum WebPDemuxState { WEBP_EXTERN(WebPDemuxer*) WebPDemuxInternal( const WebPData*, int, WebPDemuxState*, int); -// Parses the WebP file given by 'data'. -// A complete WebP file must be present in 'data' for the function to succeed. +// Parses the full WebP file given by 'data'. // Returns a WebPDemuxer object on successful parse, NULL otherwise. static WEBP_INLINE WebPDemuxer* WebPDemux(const WebPData* data) { return WebPDemuxInternal(data, 0, NULL, WEBP_DEMUX_ABI_VERSION); } -// Parses the WebP file given by 'data'. +// Parses the possibly incomplete WebP file given by 'data'. // If 'state' is non-NULL it will be set to indicate the status of the demuxer. // Returns a WebPDemuxer object on successful parse, NULL otherwise. static WEBP_INLINE WebPDemuxer* WebPDemuxPartial(