From 19e6d6ff9a9651fb4222229d1b4dc8ebe94c40f8 Mon Sep 17 00:00:00 2001 From: hj kim Date: Mon, 16 Sep 2019 15:53:38 +0900 Subject: [PATCH] Update code of checking parameter Change-Id: Iecb2fc0c8ba5a2f19aa0bab41f1982e208f825ad --- src/common/media-svc-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index f844947..dc79f08 100755 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -1665,8 +1665,8 @@ static void __media_svc_get_proper_thumb_size(unsigned int orig_w, unsigned int bool portrait = false; double ratio = 0.0; - media_svc_retm_if(orig_w <= 0, "Invalid orig_w"); - media_svc_retm_if(orig_h <= 0, "Invalid orig_h"); + media_svc_retm_if(!orig_w, "Invalid orig_w"); + media_svc_retm_if(!orig_h, "Invalid orig_h"); media_svc_retm_if(!thumb_w, "Invalid thumb_w"); media_svc_retm_if(!thumb_h, "Invalid thumb_h"); -- 2.7.4