From 60942c8cea29a0ee403795f1126a330e36508fda Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Fri, 2 Dec 2011 10:26:42 -0800 Subject: [PATCH] fix the has_alpha_ order Change-Id: I26211732584f6181bf763497818b45515e394c21 --- src/dec/webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dec/webp.c b/src/dec/webp.c index 215acbf3..91c479f0 100644 --- a/src/dec/webp.c +++ b/src/dec/webp.c @@ -506,10 +506,10 @@ static VP8StatusCode GetFeatures(const uint8_t* data, uint32_t data_size, if (status != VP8_STATUS_OK) { return status; // Wrong VP8X / insufficient data. } + features->has_alpha = !!(flags & ALPHA_FLAG); if (vp8x_skip_size > 0) { return VP8_STATUS_OK; // Return features from VP8X header. } - features->has_alpha = !!(flags & ALPHA_FLAG); // Skip over VP8 header. status = WebPParseVP8Header(&data, &data_size, riff_size, &vp8_skip_size,