summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;