Modify the size of the buffer for rotating or cropping image 72/159072/3 accepted/tizen/unified/20171108.063455 submit/tizen/20171107.034519
authorJiyong Min <jiyong.min@samsung.com>
Tue, 7 Nov 2017 01:13:51 +0000 (10:13 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Tue, 7 Nov 2017 01:47:50 +0000 (10:47 +0900)
commita43b67fc9c5e7e7532f929e42684994103b6542c
treeee855506710120212afccc777ab450b355e0bba3
parent2df8cdcf70ff8197195b98ade59424c28ae9b25c
Modify the size of the buffer for rotating or cropping image

 - Problem:
   Crash happen when image is rotated or cropped.

 - Cause & Solution:
   Because of removing the get resolution function at 'https://review.tizen.org/gerrit/#/c/158301/'.
   The size of 'dst' buffer is '0'.
   The size of buffer should be calculated by the width and height of source.

Change-Id: I1d87e51648a70504c754f99cca2fd8ce6b378c6d
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
imgp/mm_util_imgp.c
packaging/libmm-utility.spec