From afc06c00aa003548f95d84e0faf1371658ddf8b9 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Wed, 6 Aug 2014 11:31:51 +0200 Subject: [PATCH] qv4l2: correct PAL pixel aspect values There are two almost-identical-but-not-quite possible pixel aspect ratios in use for PAL: either 59:54 or 12:11. Since all our drivers report 59:54 this is the one we should use in qv4l2 as well. See also http://en.wikipedia.org/wiki/Pixel_aspect_ratio for more information on why there are two competing pixel aspect ratios. Signed-off-by: Hans Verkuil --- utils/qv4l2/general-tab.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/qv4l2/general-tab.cpp b/utils/qv4l2/general-tab.cpp index 02abd3f..4b80ede 100644 --- a/utils/qv4l2/general-tab.cpp +++ b/utils/qv4l2/general-tab.cpp @@ -2192,12 +2192,12 @@ double GeneralTab::getPixelAspectRatio() ratio.denominator = 40; break; case 4: - ratio.numerator = 11; - ratio.denominator = 12; + ratio.numerator = 54; + ratio.denominator = 59; break; case 5: - ratio.numerator = 11; - ratio.denominator = 16; + ratio.numerator = 81; + ratio.denominator = 118; break; default: break; -- 2.7.4