Change the buffer(memory) parameter of the image for decoding 66/165766/1 accepted/tizen/unified/20180109.172744 submit/tizen/20180108.064644
authorJiyong Min <jiyong.min@samsung.com>
Thu, 4 Jan 2018 00:48:40 +0000 (09:48 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 4 Jan 2018 00:49:14 +0000 (09:49 +0900)
(The buffer is used as 'void *', so 'void **' is changed to 'void *'.)

Change-Id: I1b16358db0cb9b4966c7ce154f9699c002c38dd3

src/image_util_decode.c

index dbee03c..770e505 100755 (executable)
@@ -376,7 +376,7 @@ static int _image_util_decode_internal(decode_encode_s * _handle)
                        if (_handle->path)
                                err = mm_util_decode_from_png_file(png_data, _handle->path);
                        else
-                               err = mm_util_decode_from_png_memory(png_data, &_handle->src_buffer[0], _handle->src_size);
+                               err = mm_util_decode_from_png_memory(png_data, _handle->src_buffer[0], _handle->src_size);
 
                        if (err == MM_UTIL_ERROR_NONE) {
                                *(_handle->dst_buffer) = png_data->data;
@@ -393,7 +393,7 @@ static int _image_util_decode_internal(decode_encode_s * _handle)
                        if (_handle->path)
                                err = mm_util_decode_from_gif_file(gif_data, _handle->path);
                        else
-                               err = mm_util_decode_from_gif_memory(gif_data, &_handle->src_buffer[0]);
+                               err = mm_util_decode_from_gif_memory(gif_data, _handle->src_buffer[0]);
 
                        if (err == MM_UTIL_ERROR_NONE) {
                                *(_handle->dst_buffer) = gif_data->data;
@@ -410,7 +410,7 @@ static int _image_util_decode_internal(decode_encode_s * _handle)
                        if (_handle->path)
                                err = mm_util_decode_from_bmp_file(bmp_data, _handle->path);
                        else
-                               err = mm_util_decode_from_bmp_memory(bmp_data, &_handle->src_buffer[0], _handle->src_size);
+                               err = mm_util_decode_from_bmp_memory(bmp_data, _handle->src_buffer[0], _handle->src_size);
 
                        if (err == MM_UTIL_ERROR_NONE) {
                                *(_handle->dst_buffer) = bmp_data->data;