summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/image.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc
index 06b98c4d3..ab9159d5e 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -310,11 +310,14 @@ SimpleImage::SimpleImage (PixelFormat p, Size s, function<int (int)> rounder)
_line_size[0] = s.width * 4;
break;
case PIX_FMT_YUV420P:
- case PIX_FMT_YUV422P10LE:
_line_size[0] = s.width;
_line_size[1] = s.width / 2;
_line_size[2] = s.width / 2;
break;
+ case PIX_FMT_YUV422P10LE:
+ _line_size[0] = s.width * 2;
+ _line_size[1] = s.width;
+ _line_size[2] = s.width;
default:
assert (false);
}