summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiyong.min <jiyong.min@samsung.com>2022-11-17 16:00:33 +0900
committerjiyong.min <jiyong.min@samsung.com>2022-11-17 16:00:33 +0900
commitdec815dcc39866ecde5a62d5d2ba629ab5d8f97c (patch)
tree971f68ef77f186edb0dcf9af2fec4fc658a140a9
parent82cfc598e2c68dc90f5677871597c924fd94c9e1 (diff)
downloadlibheif-dec815dcc39866ecde5a62d5d2ba629ab5d8f97c.tar.gz
libheif-dec815dcc39866ecde5a62d5d2ba629ab5d8f97c.tar.bz2
libheif-dec815dcc39866ecde5a62d5d2ba629ab5d8f97c.zip
Add missing typecast
Change-Id: Id4662d889a75ebf6d4f3886b6b272a84ea0b6bbb
-rw-r--r--src/heif_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heif_decoder.c b/src/heif_decoder.c
index 4e630ee..4eadb40 100644
--- a/src/heif_decoder.c
+++ b/src/heif_decoder.c
@@ -295,7 +295,7 @@ static int __combine_rgb(heif_image_t *tile_image, unsigned int pos_x, unsigned
// When you want to tile the walls in the bathroom, the tiles are sized at the factory.
// Therefore, you may not be able to tile it to fit exactly the walls of the bathroom.
// If it doesn't fit, the tiles at the corner must be cut and pasted.
- copy_n = (combine_image->width < (pos_x + tile_image->width)) ? (combine_image->width - pos_x) * bpp : tile_stride;
+ copy_n = (combine_image->width < (pos_x + tile_image->width)) ? (size_t)((combine_image->width - pos_x) * bpp) : tile_stride;
ptr_src = tile_image->data;
ptr_dst = combine_image->data + pos_y * combine_stride + pos_x * bpp;