Fix aarch64 build error 02/283702/1 accepted/tizen/7.0/unified/20221103.165433 accepted/tizen/7.0/unified/20221110.062951
authorjiyong.min <jiyong.min@samsung.com>
Wed, 2 Nov 2022 03:42:33 +0000 (12:42 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 2 Nov 2022 03:43:29 +0000 (03:43 +0000)
Change-Id: I1af6be83c05ef5cb5f4df03a52df73fcd7fcfcdf

src/heif_decoder.c

index c3636c8becf70a44021208e7ef2ee64e13a4a570..4e630ee02cb1dc74ef4b8d3b986dfa0fa015e7c9 100644 (file)
@@ -300,12 +300,12 @@ static int __combine_rgb(heif_image_t *tile_image, unsigned int pos_x, unsigned
        ptr_src = tile_image->data;
        ptr_dst = combine_image->data + pos_y * combine_stride + pos_x * bpp;
 
-       heif_info("combine_stride: %u, tile_stride: %u", combine_stride, tile_stride);
+       heif_info("combine_stride: %zu, tile_stride: %zu", combine_stride, tile_stride);
        heif_info("ptr_src: %p, ptr_dst: %p, copy_n: %zu", ptr_src, ptr_dst, copy_n);
 
        // check the size of tile_image to avoid over-read
        if (tile_stride * tile_image->height > tile_image->size) {
-               heif_error("Invalid source size! stride: %u, height: %u, src_size: %zu",
+               heif_error("Invalid source size! stride: %zu, height: %u, src_size: %zu",
                                                tile_stride, tile_image->height, tile_image->size);
                return LIBHEIF_ERROR_INVALID_PARAMETER;
        }
@@ -371,12 +371,12 @@ static int __combine_yuv(heif_image_t *tile_image, unsigned int pos_x, unsigned
        // copy 'y' data of tile
        copy_n = ((combine_stride - pos_x) < tile_stride) ? (combine_stride - pos_x) : tile_stride;
 
-       heif_info("combine_stride: %u, tile_stride: %u", combine_stride, tile_stride);
+       heif_info("combine_stride: %zu, tile_stride: %zu", combine_stride, tile_stride);
        heif_info("ptr_src: %p, ptr_dst: %p, copy_n: %zu", ptr_src[0], ptr_dst[0], copy_n);
 
        // check the size of tile_image to avoid over-read
        if (((tile_stride * tile_image->height) * 3) / 2 > tile_image->size) {
-               heif_error("Invalid source size! stride: %u, height: %u, src_size: %zu",
+               heif_error("Invalid source size! stride: %zu, height: %u, src_size: %zu",
                                                tile_stride, tile_image->height, tile_image->size);
                return LIBHEIF_ERROR_INVALID_PARAMETER;
        }
@@ -416,7 +416,7 @@ static int __combine_yuv(heif_image_t *tile_image, unsigned int pos_x, unsigned
 
        copy_n = ((combine_stride - (pos_x / 2)) < tile_stride) ? (combine_stride - (pos_x / 2)) : tile_stride;
 
-       heif_info("combine_stride: %u, tile_stride: %u", combine_stride, tile_stride);
+       heif_info("combine_stride: %zu, tile_stride: %zu", combine_stride, tile_stride);
        heif_info("ptr_src: %p, ptr_dst: %p, copy_n: %zu", ptr_src[1], ptr_dst[1], copy_n);
        heif_info("ptr_src: %p, ptr_dst: %p, copy_n: %zu", ptr_src[2], ptr_dst[2], copy_n);