fix the has_alpha_ order

Change-Id: I26211732584f6181bf763497818b45515e394c21
This commit is contained in:
Pascal Massimino 2011-12-02 10:26:42 -08:00
parent 30971c9e95
commit 60942c8cea

View File

@ -506,10 +506,10 @@ static VP8StatusCode GetFeatures(const uint8_t* data, uint32_t data_size,
if (status != VP8_STATUS_OK) { if (status != VP8_STATUS_OK) {
return status; // Wrong VP8X / insufficient data. return status; // Wrong VP8X / insufficient data.
} }
features->has_alpha = !!(flags & ALPHA_FLAG);
if (vp8x_skip_size > 0) { if (vp8x_skip_size > 0) {
return VP8_STATUS_OK; // Return features from VP8X header. return VP8_STATUS_OK; // Return features from VP8X header.
} }
features->has_alpha = !!(flags & ALPHA_FLAG);
// Skip over VP8 header. // Skip over VP8 header.
status = WebPParseVP8Header(&data, &data_size, riff_size, &vp8_skip_size, status = WebPParseVP8Header(&data, &data_size, riff_size, &vp8_skip_size,