From: Carl Hetherington Date: Wed, 17 Oct 2012 14:06:49 +0000 (+0100) Subject: Try to fix problems with YUV422P10LE. X-Git-Tag: v2.0.48~1703 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=8fe6c275038d381a51189e678f3fcafc3fca7200;p=dcpomatic.git Try to fix problems with YUV422P10LE. --- 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 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); }