[08/15] fraps: Change type of array stride parameters to ptrdiff_t

Message ID 1473178294-16959-8-git-send-email-diego@biurrun.de
State New
Headers show

Commit Message

Diego Biurrun Sept. 6, 2016, 4:11 p.m.
ptrdiff_t is the correct type for array strides and similar.
---
 libavcodec/fraps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Luca Barbato Sept. 7, 2016, 10:25 a.m. | #1
On 06/09/16 18:11, Diego Biurrun wrote:
> ptrdiff_t is the correct type for array strides and similar.
> ---
>  libavcodec/fraps.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
> index eb61c70..af7f4ad 100644
> --- a/libavcodec/fraps.c
> +++ b/libavcodec/fraps.c
> @@ -91,7 +91,7 @@ static int huff_cmp(const void *va, const void *vb)
>   */
>  static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
>                                 int h, const uint8_t *src, int size, int Uoff,
> -                               const int step)
> +                               const ptrdiff_t step)
>  {
>      int i, j, ret;
>      GetBitContext gb;
> 

Possibly Ok.

Patch

diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index eb61c70..af7f4ad 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -91,7 +91,7 @@  static int huff_cmp(const void *va, const void *vb)
  */
 static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
                                int h, const uint8_t *src, int size, int Uoff,
-                               const int step)
+                               const ptrdiff_t step)
 {
     int i, j, ret;
     GetBitContext gb;