vp8l: don't ignore I/O errors when reading LZ77 parameters.

Fixes golang/go#10383

Change-Id: I3e5e357a40a45189c31f0b4db9422dedc351c910
Reviewed-on: https://go-review.googlesource.com/9912
Reviewed-by: Nigel Tao <nigeltao@golang.org>
This commit is contained in:
Aamir Khan 2015-05-10 17:14:18 +09:00 committed by Nigel Tao
parent 25eff15cb8
commit c5f9292598

View File

@ -496,7 +496,7 @@ func (d *decoder) lz77Param(symbol uint32) (uint32, error) {
offset := (2 + symbol&1) << extraBits
n, err := d.read(extraBits)
if err != nil {
return 0, nil
return 0, err
}
return offset + n + 1, nil
}