Modify buffer overflow when image was rotated
[Problem] Crash happen by buffer overflow
[Cause]
The size of the buffer is calculated with width, height and format
The width should be a multiple of 4 or 8, so the size of the buffer is affected from the width.
But the width and the height were swapped for some cases. So the size of the buffer was not correct.
[Solution]
To swap the width and the height is not neccessary. It is removed.
Change-Id: I832b18a50470681588137ace90d0f6178c96a927
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>