[12/15] qdrw: Change type of array stride parameters to ptrdiff_t

Message ID 1473178294-16959-12-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/qdrw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vittorio Giovara Oct. 2, 2016, 8:39 p.m. | #1
On Tue, Sep 6, 2016 at 12:11 PM, Diego Biurrun <diego@biurrun.de> wrote:
> ptrdiff_t is the correct type for array strides and similar.
> ---
>  libavcodec/qdrw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
> index b7493e4..3605a5a 100644
> --- a/libavcodec/qdrw.c
> +++ b/libavcodec/qdrw.c
> @@ -67,7 +67,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
>  }
>
>  static int decode_rle(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc,
> -                      int step)
> +                      ptrdiff_t step)
>  {
>      int i, j;
>      int offset = avctx->width * step;
> --

probably ok

Patch

diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index b7493e4..3605a5a 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -67,7 +67,7 @@  static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
 }
 
 static int decode_rle(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc,
-                      int step)
+                      ptrdiff_t step)
 {
     int i, j;
     int offset = avctx->width * step;