X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhevcdsp_template.c;h=2b06dc5cbae645079b7269d0eb74bb1efc1ab4c1;hb=9a0fbb9ca9256a2d081e440025b12f390d7380df;hp=b95984f1eb85effd23030ccb95fd0bc698ec16c0;hpb=71d3d96c9f69bb676c8391f5536665abb2bcc542;p=ffmpeg diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c index b95984f1eb8..2b06dc5cbae 100644 --- a/libavcodec/hevcdsp_template.c +++ b/libavcodec/hevcdsp_template.c @@ -393,8 +393,8 @@ static void FUNC(sao_edge_restore_0)(uint8_t *_dst, uint8_t *_src, } if (borders[3]) { int offset_val = sao_offset_val[0]; - int y_stride_dst = stride_dst * (height - 1); - int y_stride_src = stride_src * (height - 1); + ptrdiff_t y_stride_dst = stride_dst * (height - 1); + ptrdiff_t y_stride_src = stride_src * (height - 1); for (x = init_x; x < width; x++) dst[x + y_stride_dst] = av_clip_pixel(src[x + y_stride_src] + offset_val); height--; @@ -444,8 +444,8 @@ static void FUNC(sao_edge_restore_1)(uint8_t *_dst, uint8_t *_src, } if (borders[3]) { int offset_val = sao_offset_val[0]; - int y_stride_dst = stride_dst * (height - 1); - int y_stride_src = stride_src * (height - 1); + ptrdiff_t y_stride_dst = stride_dst * (height - 1); + ptrdiff_t y_stride_src = stride_src * (height - 1); for (x = init_x; x < width; x++) dst[x + y_stride_dst] = av_clip_pixel(src[x + y_stride_src] + offset_val); height--;