Merge "idec: fix WebPIUpdate failure"

This commit is contained in:
pascal massimino 2012-01-31 23:39:02 -08:00 committed by Gerrit Code Review
commit 85b6ff6897

View File

@ -312,12 +312,12 @@ static int CopyParts0Data(WebPIDecoder* idec) {
} }
memcpy(part0_buf, br->buf_, psize); memcpy(part0_buf, br->buf_, psize);
mem->part0_buf_ = part0_buf; mem->part0_buf_ = part0_buf;
mem->start_ += psize;
br->buf_ = part0_buf; br->buf_ = part0_buf;
br->buf_end_ = part0_buf + psize; br->buf_end_ = part0_buf + psize;
} else { } else {
// Else: just keep pointers to the partition #0's data in dec_->br_. // Else: just keep pointers to the partition #0's data in dec_->br_.
} }
mem->start_ += psize;
return 1; return 1;
} }