ptrdiff_t is the correct type for array strides and similar.
---
libavcodec/rectangle.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/rectangle.h b/libavcodec/rectangle.h
index 616a637..2fc264d 100644
--- a/libavcodec/rectangle.h
+++ b/libavcodec/rectangle.h
@@ -38,7 +38,10 @@
* @param w width of the rectangle, should be a constant
* @param size the size of val (1, 2 or 4), should be a constant
*/
-static av_always_inline void fill_rectangle(void *vp, int w, int h, int
stride, uint32_t val, int size){
+static av_always_inline void fill_rectangle(void *vp, int w, int h,
+ ptrdiff_t stride, uint32_t val,
+ int size)
+{
uint8_t *p= (uint8_t*)vp;
assert(size==1 || size==2 || size==4);
assert(w<=4);
--
2.1.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel