mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
fix missed optim
it's not often the case, but could happen, that chroma has non-zero coeff but luma hasn't. In such case, we should skip luma right away Change-Id: I9515573ffaec8aad8b069d2c02ffbda4a6eff97c
This commit is contained in:
parent
00046171a5
commit
878b9da5bf
@ -626,7 +626,7 @@ void VP8ReconstructBlock(VP8Decoder* const dec) {
|
||||
} else { // 16x16
|
||||
const int pred_func = CheckMode(dec->mb_x_, dec->mb_y_, dec->imodes_[0]);
|
||||
VP8PredLuma16[pred_func](y_dst);
|
||||
if (dec->non_zero_) {
|
||||
if (dec->non_zero_ & 0xffff) {
|
||||
for (n = 0; n < 16; n++) {
|
||||
uint8_t* const dst = y_dst + kScan[n];
|
||||
if (dec->non_zero_ac_ & (1 << n)) {
|
||||
|
Loading…
Reference in New Issue
Block a user