Skip to content

Commit

Permalink
[media] media: v4l2-core: v4l2-dv-timings.c: Cleaning up code wrong v…
Browse files Browse the repository at this point in the history
…alue used in aspect ratio

Wrong value used in same cases for the aspect ratio.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Cc: stable@vger.kernel.org      # for v3.12 and up
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Rickard Strandqvist authored and Mauro Carvalho Chehab committed Jun 19, 2014
1 parent 0c76e68 commit f71920e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/v4l2-core/v4l2-dv-timings.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,10 @@ struct v4l2_fract v4l2_calc_aspect_ratio(u8 hor_landscape, u8 vert_portrait)
aspect.denominator = 9;
} else if (ratio == 34) {
aspect.numerator = 4;
aspect.numerator = 3;
aspect.denominator = 3;
} else if (ratio == 68) {
aspect.numerator = 15;
aspect.numerator = 9;
aspect.denominator = 9;
} else {
aspect.numerator = hor_landscape + 99;
aspect.denominator = 100;
Expand Down

0 comments on commit f71920e

Please sign in to comment.