From 408d3ae2052289b4ad7af119da315701895c1975 Mon Sep 17 00:00:00 2001 From: sangho park Date: Fri, 9 Mar 2018 13:37:39 +0900 Subject: [PATCH] [UTC][capi-media-vision][NON-ACR][SVACE] WGID-70278 Change-Id: I841a6af762cfe64659cac2e0e46211a4279d8aaf Signed-off-by: sangho park --- src/utc/capi-media-vision/utc-mv_barcode.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/utc/capi-media-vision/utc-mv_barcode.c b/src/utc/capi-media-vision/utc-mv_barcode.c index 44adb1686..e5ec42361 100755 --- a/src/utc/capi-media-vision/utc-mv_barcode.c +++ b/src/utc/capi-media-vision/utc-mv_barcode.c @@ -1503,10 +1503,15 @@ int utc_mediavision_mv_barcode_detect_n5(void) roi.width = width; roi.height = height; - assert_eq(MEDIA_VISION_ERROR_NONE, - mv_source_fill_by_buffer(media_source, buffer, - buffer_size, width, height, - MEDIA_VISION_COLORSPACE_Y800)); + int ret = mv_source_fill_by_buffer(media_source, buffer, + buffer_size, width, height, + MEDIA_VISION_COLORSPACE_Y800); + + if (ret != MEDIA_VISION_ERROR_NONE) + { + free(buffer); + assert(FALSE); + } printf("roi is out of area: the right-bottom corner is (%d,%d)\n", roi.point.x + roi.width, roi.point.y + roi.height); -- 2.34.1