[ITC][image-util][Non-ACR][Bug fix] 94/230594/2
authorTae-Young Chung <ty83.chung@samsung.com>
Mon, 13 Apr 2020 02:47:02 +0000 (11:47 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Mon, 13 Apr 2020 03:37:16 +0000 (12:37 +0900)
Change-Id: I1de7337db446422c13d60317c9fd34e8ea8a5719
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
src/itc/image-util/ITs-image-util.c

index e577f52a4ba99d563de21fffd166266416933480..e35a87595f48d234e990bd9020657ce6b9b54984 100755 (executable)
@@ -566,7 +566,6 @@ int ITc_image_util_transform_run_p(void)
 int ITc_image_util_extract_color_from_memory_p(void)
 {
     unsigned char *puszImageSourceBuffer = NULL;
-    int nWidth = 0, nHeight = 0;
     unsigned char rgb_r, rgb_g, rgb_b;
        unsigned long long unDecodeSize = 0;
        image_util_decode_h dstHandle = NULL;
@@ -605,11 +604,8 @@ int ITc_image_util_extract_color_from_memory_p(void)
        nRet = image_util_destroy_image(stDecodedImage);
        PRINT_RESULT(IMAGE_UTIL_ERROR_NONE, nRet, "image_util_destroy_image", ImageUtilGetError(nRet));
 
-       nWidth = (int)nDecWidth;
-       nWidth = (int)nDecHeight;
-
        //target api
-       nRet = image_util_extract_color_from_memory(puszImageSourceBuffer, nWidth, nHeight, &rgb_r, &rgb_g, &rgb_b);
+       nRet = image_util_extract_color_from_memory(puszImageSourceBuffer, (int)nDecWidth, (int)nDecHeight, &rgb_r, &rgb_g, &rgb_b);
        PRINT_RESULT_CLEANUP(IMAGE_UTIL_ERROR_NONE, nRet, "image_util_extract_color_from_memory", ImageUtilGetError(nRet), FREE_MEMORY(puszImageSourceBuffer));
 
        FREE_MEMORY(puszImageSourceBuffer);