summaryrefslogtreecommitdiff
path: root/src/pkg/image/png
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-20 12:45:39 -0700
committerRuss Cox <rsc@golang.org>2010-06-20 12:45:39 -0700
commit969e4a5a5a6a6f2b4035bfab6337ec89b9bf767b (patch)
treec083ddd668fea71354f1f19365aa43b8ae7979df /src/pkg/image/png
parentbe1fb301f118bbbf0cc9564f72392390425b5c67 (diff)
downloadgolang-969e4a5a5a6a6f2b4035bfab6337ec89b9bf767b.tar.gz
undo changes accidentally included in 09c5add99d50
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
Diffstat (limited to 'src/pkg/image/png')
-rw-r--r--src/pkg/image/png/reader.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/image/png/reader.go b/src/pkg/image/png/reader.go
index 33f00eb77..fddb70423 100644
--- a/src/pkg/image/png/reader.go
+++ b/src/pkg/image/png/reader.go
@@ -14,7 +14,6 @@ import (
"image"
"io"
"os"
- "strconv"
)
// Color type, as per the PNG spec.
@@ -109,7 +108,7 @@ func (d *decoder) parseIHDR(r io.Reader, crc hash.Hash32, length uint32) os.Erro
}
crc.Write(d.tmp[0:13])
if d.tmp[8] != 8 {
- return UnsupportedError("bit depth " + strconv.Itoa(int(d.tmp[8])))
+ return UnsupportedError("bit depth")
}
if d.tmp[10] != 0 || d.tmp[11] != 0 || d.tmp[12] != 0 {
return UnsupportedError("compression, filter or interlace method")