From 67708d67013776fb0aa6593a49249a1b350fe602 Mon Sep 17 00:00:00 2001 From: Urvang Joshi Date: Fri, 5 Apr 2013 11:33:44 -0700 Subject: [PATCH] WebPEncode: An additional check. Start VP8EncLoop/VP8EncTokenLoop only if VP8EncStartAlpha succeeded. Change-Id: Id1faca3e6def88102329ae2b4974bd4d6d4c4a7a --- src/enc/webpenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/enc/webpenc.c b/src/enc/webpenc.c index 20fbac4d..93d34dae 100644 --- a/src/enc/webpenc.c +++ b/src/enc/webpenc.c @@ -386,9 +386,9 @@ int WebPEncode(const WebPConfig* config, WebPPicture* pic) { // Analysis is done, proceed to actual coding. ok = ok && VP8EncStartAlpha(enc); // possibly done in parallel if (!enc->use_tokens_) { - ok = VP8EncLoop(enc); + ok = ok && VP8EncLoop(enc); } else { - ok = VP8EncTokenLoop(enc); + ok = ok && VP8EncTokenLoop(enc); } ok = ok && VP8EncFinishAlpha(enc); #ifdef WEBP_EXPERIMENTAL_FEATURES