Commit 427bec62 authored by Nigel Tao's avatar Nigel Tao

image/jpeg: avoid documentation argument over whether it's luma

subsampling or chroma subsampling.

Fixes #5569.

R=r
CC=golang-dev
https://golang.org/cl/9900044
parent 8c1b0da0
......@@ -174,10 +174,10 @@ func (d *decoder) processSOF(n int) error {
// values for the Cr and Cb components must be (1, 1).
if i == 0 {
if hv != 0x11 && hv != 0x21 && hv != 0x22 && hv != 0x12 {
return UnsupportedError("luma downsample ratio")
return UnsupportedError("luma/chroma downsample ratio")
}
} else if hv != 0x11 {
return UnsupportedError("chroma downsample ratio")
return UnsupportedError("luma/chroma downsample ratio")
}
}
return nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment