Skip to content

Commit

Permalink
vp8l: don't ignore I/O errors when reading LZ77 parameters.
Browse files Browse the repository at this point in the history
Fixes golang/go#10383

Change-Id: I3e5e357a40a45189c31f0b4db9422dedc351c910
Reviewed-on: https://go-review.googlesource.com/9912
Reviewed-by: Nigel Tao <[email protected]>
  • Loading branch information
balloontmz6 committed Feb 11, 2022
1 parent 034113b commit 7461cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vp8l/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7461cdd

Please sign in to comment.