diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-17 15:06:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-17 15:06:49 +0100 |
| commit | 8fe6c275038d381a51189e678f3fcafc3fca7200 (patch) | |
| tree | 2f1ea95fa0d8093b0d79681020cc3a895eab2a0e /src | |
| parent | 32a04c50a363844cc0bb2c7b4a1e1216a429fd45 (diff) | |
Try to fix problems with YUV422P10LE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/image.cc | 5 |
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); } |
