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:
parent
25eff15cb8
commit
c5f9292598
|
@ -496,7 +496,7 @@ func (d *decoder) lz77Param(symbol uint32) (uint32, error) {
|
||||||
offset := (2 + symbol&1) << extraBits
|
offset := (2 + symbol&1) << extraBits
|
||||||
n, err := d.read(extraBits)
|
n, err := d.read(extraBits)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, nil
|
return 0, err
|
||||||
}
|
}
|
||||||
return offset + n + 1, nil
|
return offset + n + 1, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user