From: Ian Armstrong Date: Fri, 3 Aug 2007 12:44:13 +0000 (-0300) Subject: V4L/DVB (5970): ivtv: prevent vertical overflow of yuv output X-Git-Tag: v2.6.24-rc1~1463^2~261 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4b38bd63c07c8927b43c6c378eca1db10fdaf2e;p=pandora-kernel.git V4L/DVB (5970): ivtv: prevent vertical overflow of yuv output When the video standard is changed, there's no guarantee the framebuffer dimensions are still legal. The yuv output code uses these dimensions to calculate the size & position for the video overlay. If the framebuffer dimensions are now illegal, the output may exceed the vertical limit of the display, causing distortion. This patch adds an additional check to ensure the output doesn't exceed the limits for the current video standard, cropping if required. Signed-off-by: Ian Armstrong Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed