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