summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2015-06-23 08:30:45 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2015-07-02 10:13:49 (GMT)
commit51e31533b89929b6aed1a1727c0500cb01ce2d9f (patch)
treed95641ae327e40d334e56dcfb285ae0467baed23 /src/util
parentf608c86507c0899ee874217f3a223e40c643aff8 (diff)
downloadlibmedia-thumbnail-51e31533b89929b6aed1a1727c0500cb01ce2d9f.zip
libmedia-thumbnail-51e31533b89929b6aed1a1727c0500cb01ce2d9f.tar.gz
libmedia-thumbnail-51e31533b89929b6aed1a1727c0500cb01ce2d9f.tar.bz2
Change-Id: Ia54e4466ca6665b27cca316f9553ad15cef764be Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/media-thumb-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/media-thumb-util.c b/src/util/media-thumb-util.c
index 6dd2282..485d13a 100755
--- a/src/util/media-thumb-util.c
+++ b/src/util/media-thumb-util.c
@@ -413,7 +413,7 @@ int _thumbnail_get_raw_data(const char *origin_path,
int thumb_width = -1;
int thumb_height = -1;
- if (origin_path == NULL || * width >= 0 || *height >= 0) {
+ if (origin_path == NULL || * width <= 0 || *height <= 0) {
thumb_err("Invalid parameter");
return MS_MEDIA_ERR_INVALID_PARAMETER;
}