Update code of checking parameter 79/213879/1 accepted/tizen/unified/20190916.111559 submit/tizen/20190916.065445
authorhj kim <backto.kim@samsung.com>
Mon, 16 Sep 2019 06:53:38 +0000 (15:53 +0900)
committerhj kim <backto.kim@samsung.com>
Mon, 16 Sep 2019 06:53:38 +0000 (15:53 +0900)
Change-Id: Iecb2fc0c8ba5a2f19aa0bab41f1982e208f825ad

src/common/media-svc-util.c

index f844947..dc79f08 100755 (executable)
@@ -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");