Modify the number of the pixcel to extract RGB 34/145934/3 accepted/tizen/unified/20170825.163238 submit/tizen/20170824.093048 submit/tizen/20170825.024959
authorJiyong Min <jiyong.min@samsung.com>
Thu, 24 Aug 2017 07:42:05 +0000 (16:42 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 24 Aug 2017 07:53:34 +0000 (16:53 +0900)
- The resolution of current frame is image_desc.
And the width, height of gif_image is the with & height of total image.
So the width, height can not be same with current frame.

Change-Id: I362cc07ab26298e6f502d66005f30ab7ac944eba
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
gif/mm_util_gif.c

index 0921f9b..90133cc 100755 (executable)
@@ -568,7 +568,7 @@ int __gif_make_color_map(gif_image_s *gif_image)
 
        mm_util_retvm_if(gif_image == NULL, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid parameter");
 
-       unsigned long num_of_pixels = gif_image->width * gif_image->height;
+       unsigned long num_of_pixels = gif_image->image_desc.Width* gif_image->image_desc.Height;
 
        /* make colormap and quantization for the color table of gif */
        ret = __gif_extract_rgb(gif_image, num_of_pixels, &red, &green, &blue);