summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-22 20:24:19 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-22 20:24:19 +0000
commit001dcc94aaba89a5fed1a328496bf83dba5bfb79 (patch)
tree7e9bc088780438615182f6602c80987cc8ead148
parent657f735160fd8b0abc67d6e5f519da5786ed26f0 (diff)
Speculative fix to bytes_per_pixel().
-rw-r--r--src/lib/image.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc
index c41558f02..4eed0e5b4 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -350,7 +350,7 @@ Image::bytes_per_pixel (int c) const
return 0.5;
}
case PIX_FMT_YUV422P10LE:
- if (c == 1) {
+ if (c == 0) {
return 2;
} else {
return 1;