mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
cherry-pick decoder fix for 64-bit android devices
This fixes decoders built against clang-3.8 (r11c). Without this change bad conditional code would be generated causing all calls to WebPParseHeaders() to return 4 (UNSUPPORTED_FEATURE). Original fix: https://android-review.googlesource.com/#/c/196123 Change-Id: Id4b4d84048d347cea110b6cf297ef9ef4fbed323
This commit is contained in:
parent
5f95589fae
commit
6235147ed5
@ -415,7 +415,8 @@ static VP8StatusCode ParseHeadersInternal(const uint8_t* data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
VP8StatusCode WebPParseHeaders(WebPHeaderStructure* const headers) {
|
VP8StatusCode WebPParseHeaders(WebPHeaderStructure* const headers) {
|
||||||
VP8StatusCode status;
|
// status is marked volatile as a workaround for a clang-3.8 (aarch64) bug
|
||||||
|
volatile VP8StatusCode status;
|
||||||
int has_animation = 0;
|
int has_animation = 0;
|
||||||
assert(headers != NULL);
|
assert(headers != NULL);
|
||||||
// fill out headers, ignore width/height/has_alpha.
|
// fill out headers, ignore width/height/has_alpha.
|
||||||
|
Loading…
Reference in New Issue
Block a user