qv4l2: correct PAL pixel aspect values
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 6 Aug 2014 09:31:51 +0000 (11:31 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Wed, 6 Aug 2014 09:31:51 +0000 (11:31 +0200)
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 <hans.verkuil@cisco.com>
utils/qv4l2/general-tab.cpp

index 02abd3f..4b80ede 100644 (file)
@@ -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;