cwebp: centralize WebPCleanupTransparentArea()

this can be safely called whether the picture has alpha or not

Change-Id: I0047fd4c110f1072f183f3d340682502bd6623d7
This commit is contained in:
James Zern
2013-02-01 20:04:20 -08:00
committed by Gerrit Code Review
parent 7381254e9a
commit 7c732e59f4
4 changed files with 3 additions and 9 deletions

View File

@ -274,9 +274,6 @@ int ReadPNG(FILE* in_file, WebPPicture* const pic, int keep_alpha,
if (!ok) {
goto Error;
}
if (has_alpha && keep_alpha == 2) {
WebPCleanupTransparentArea(pic);
}
End:
return ok;