diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2018-11-05 18:25:08 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 13:30:28 +0300 |
commit | cf13135cf593439ebae0db6d8177e8af0fc3a945 (patch) | |
tree | 5d32b1b8c2df5c653ad02d3c20037d6560f75929 /drivers/media/platform/coda | |
parent | 07b6080d4e6d4b60f69dab06c07d8b36017a05e3 (diff) | |
download | linux-cf13135cf593439ebae0db6d8177e8af0fc3a945.tar.xz |
media: coda: never set infinite timeperframe
v4l2-compliance complains if G_PARM returns 0 in the denominator.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index e342f1b64b61..fdea934af7ed 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -1113,10 +1113,10 @@ static void coda_approximate_timeperframe(struct v4l2_fract *timeperframe) return; } - /* Upper bound is 65536/1, map everything above to infinity */ + /* Upper bound is 65536/1 */ if (s.denominator == 0 || s.numerator / s.denominator > 65536) { - timeperframe->numerator = 1; - timeperframe->denominator = 0; + timeperframe->numerator = 65536; + timeperframe->denominator = 1; return; } |