Index: source/convert.cc |
diff --git a/source/convert.cc b/source/convert.cc |
index c1ff8c43842e1aa22794580d1a4ce45a7fb0df31..3779d999d24e3cd1c314f135cd1bbca84495a588 100644 |
--- a/source/convert.cc |
+++ b/source/convert.cc |
@@ -1496,7 +1496,7 @@ int Android420ToI420(const uint8* src_y, |
int width, |
int height) { |
int y; |
- const int vu_off = src_v - src_u; |
+ const ptrdiff_t vu_off = src_v - src_u; |
int halfwidth = (width + 1) >> 1; |
int halfheight = (height + 1) >> 1; |
if (!src_u || !src_v || !dst_u || !dst_v || width <= 0 || height == 0) { |