summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNilesh Trimbake <t.shripati@samsung.com>2018-11-06 12:57:24 +0530
committerNilesh Trimbake <t.shripati@samsung.com>2018-11-06 12:57:34 +0530
commit65dff2651e9184dce565bb47809e52b0a4cfc74f (patch)
treed2ef75e2cfefaaa06d0c0972fdc172a6986c8158
parent7887a7a8dcf08e005d3265cb92b112ad19a70d0e (diff)
downloadmessage-65dff2651e9184dce565bb47809e52b0a4cfc74f.tar.gz
message-65dff2651e9184dce565bb47809e52b0a4cfc74f.tar.bz2
message-65dff2651e9184dce565bb47809e52b0a4cfc74f.zip
Add valid pointer to image_util_decode_run() APIsubmit/tizen/20181106.165623
This patch add valid pointer to image util api. Change-Id: I6d649e603301707557ba4d4ad7b3e2c4a72c15da
-rw-r--r--src/Common/Utils/src/MediaUtils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Common/Utils/src/MediaUtils.cpp b/src/Common/Utils/src/MediaUtils.cpp
index 5d868a6..d742563 100644
--- a/src/Common/Utils/src/MediaUtils.cpp
+++ b/src/Common/Utils/src/MediaUtils.cpp
@@ -228,6 +228,7 @@ long long downgradeImageQuality(const std::string &imagePath)
unsigned int exifBuffLen = 0;
unsigned char *jpegBuff = nullptr;
unsigned long long int jpegBuffLen = 0;
+ unsigned long long int bufferSize = 0;
std::ofstream outputFile;
exifData = exif_data_new_from_file(imagePath.c_str());
@@ -256,7 +257,7 @@ long long downgradeImageQuality(const std::string &imagePath)
return FileUtils::getFileSize(imagePath);
}
- res = image_util_decode_run(decode_h, &width, &height, nullptr);
+ res = image_util_decode_run(decode_h, &width, &height, &bufferSize);
image_util_decode_destroy(decode_h);
if (res != IMAGE_UTIL_ERROR_NONE)
{