summaryrefslogtreecommitdiff
path: root/src/media-thumb-internal.c
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2017-10-30 11:27:12 +0900
committerhj kim <backto.kim@samsung.com>2017-10-30 11:27:39 +0900
commit6c8089d12ec7b310732bfe283c539cfeb4dec28a (patch)
treeddd85fd0b3fca9cbd0eb4a2fc9e91476e4eda0b1 /src/media-thumb-internal.c
parent984b1c8a841ba1abccc4012efcb2f63fd8762588 (diff)
downloadlibmedia-thumbnail-6c8089d12ec7b310732bfe283c539cfeb4dec28a.tar.gz
libmedia-thumbnail-6c8089d12ec7b310732bfe283c539cfeb4dec28a.tar.bz2
libmedia-thumbnail-6c8089d12ec7b310732bfe283c539cfeb4dec28a.zip
Change-Id: Ia941a47ea8fe745880abd20db645ee83b1d8262c
Diffstat (limited to 'src/media-thumb-internal.c')
-rwxr-xr-xsrc/media-thumb-internal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 825fd30..6ae8396 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -481,6 +481,11 @@ static int __media_thumb_decode_jpeg(unsigned char *src, unsigned long long size
int err = IMAGE_UTIL_ERROR_NONE;
image_util_decode_h decoder = NULL;
+ if (!dst || !width || !height || !dst_size) {
+ thumb_err("Invalide parameter");
+ return MS_MEDIA_ERR_INVALID_PARAMETER;
+ }
+
err = image_util_decode_create(&decoder);
if (err != IMAGE_UTIL_ERROR_NONE) {
thumb_err("image_util_decode_create failed! (%d)", err);