mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 13:59:51 +02:00
Compare commits
1 Commits
1.3.0
...
chrome-m11
Author | SHA1 | Date | |
---|---|---|---|
4619a48fc3 |
@ -141,11 +141,6 @@ static int EncodeAlphaInternal(const uint8_t* const data, int width, int height,
|
|||||||
!reduce_levels, &tmp_bw, &result->stats);
|
!reduce_levels, &tmp_bw, &result->stats);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
output = VP8LBitWriterFinish(&tmp_bw);
|
output = VP8LBitWriterFinish(&tmp_bw);
|
||||||
if (tmp_bw.error_) {
|
|
||||||
VP8LBitWriterWipeOut(&tmp_bw);
|
|
||||||
memset(&result->bw, 0, sizeof(result->bw));
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
output_size = VP8LBitWriterNumBytes(&tmp_bw);
|
output_size = VP8LBitWriterNumBytes(&tmp_bw);
|
||||||
if (output_size > data_size) {
|
if (output_size > data_size) {
|
||||||
// compressed size is larger than source! Revert to uncompressed mode.
|
// compressed size is larger than source! Revert to uncompressed mode.
|
||||||
|
Reference in New Issue
Block a user