[media] OMAP_VOUTLIB: Fix wrong resizer calculation
authorVladimir Pantelic <vladoman@gmail.com>
Tue, 26 Apr 2011 07:28:11 +0000 (04:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 1 Jul 2011 18:46:24 +0000 (15:46 -0300)
commite8bb10b82f3d9fff79751ee392c1c499e3d68365
tree260548d8442699f3138b90f619361d37672dd99f
parentaa122d424b14b4a4c5ba302e668366717e9cac7b
[media] OMAP_VOUTLIB: Fix wrong resizer calculation

The omap_vout_new_crop() function has possible bug, uses uninitialized
variable "crop.width/height" which is actually output of the function.
Instead we should be using "try_crop.width/height" to calculate the
resizer value.

Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap/omap_voutlib.c