mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Merge "WebPEncode: An additional check. Start VP8EncLoop/VP8EncTokenLoop only if VP8EncStartAlpha succeeded."
This commit is contained in:
commit
5167ca4759
@ -386,9 +386,9 @@ int WebPEncode(const WebPConfig* config, WebPPicture* pic) {
|
|||||||
// Analysis is done, proceed to actual coding.
|
// Analysis is done, proceed to actual coding.
|
||||||
ok = ok && VP8EncStartAlpha(enc); // possibly done in parallel
|
ok = ok && VP8EncStartAlpha(enc); // possibly done in parallel
|
||||||
if (!enc->use_tokens_) {
|
if (!enc->use_tokens_) {
|
||||||
ok = VP8EncLoop(enc);
|
ok = ok && VP8EncLoop(enc);
|
||||||
} else {
|
} else {
|
||||||
ok = VP8EncTokenLoop(enc);
|
ok = ok && VP8EncTokenLoop(enc);
|
||||||
}
|
}
|
||||||
ok = ok && VP8EncFinishAlpha(enc);
|
ok = ok && VP8EncFinishAlpha(enc);
|
||||||
#ifdef WEBP_EXPERIMENTAL_FEATURES
|
#ifdef WEBP_EXPERIMENTAL_FEATURES
|
||||||
|
Loading…
Reference in New Issue
Block a user