summaryrefslogtreecommitdiff
path: root/src/pkg/image
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2013-06-05 10:18:06 +1000
committerNigel Tao <nigeltao@golang.org>2013-06-05 10:18:06 +1000
commit02d09fedf7adb7d9ce4ef4092d0d8beaa7b1f21b (patch)
treea14ed30ca07d178a3392b8cd1de754c17f017290 /src/pkg/image
parent06aacca29ff5351cc9818f91224ca0c66e822663 (diff)
downloadgo-02d09fedf7adb7d9ce4ef4092d0d8beaa7b1f21b.tar.gz
image/jpeg: avoid documentation argument over whether it's luma
subsampling or chroma subsampling. Fixes issue 5569. R=r CC=golang-dev https://codereview.appspot.com/9900044
Diffstat (limited to 'src/pkg/image')
-rw-r--r--src/pkg/image/jpeg/reader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/image/jpeg/reader.go b/src/pkg/image/jpeg/reader.go
index 862d8dc1b..356d56220 100644
--- a/src/pkg/image/jpeg/reader.go
+++ b/src/pkg/image/jpeg/reader.go
@@ -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