[06/15] dxv: Change type of array stride parameters to ptrdiff_t

Message ID 1473178294-16959-6-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/dxv.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/dxv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c
> index 99327df..fce7f62 100644
> --- a/libavcodec/dxv.c
> +++ b/libavcodec/dxv.c
> @@ -36,7 +36,7 @@ typedef struct DXVContext {
>
>      uint8_t *tex_data;  // Compressed texture
>      int tex_rat;        // Compression ratio
> -    int tex_step;       // Distance between blocks
> +    ptrdiff_t tex_step; // Distance between blocks
>      int64_t tex_size;   // Texture size
>
>      /* Optimal number of slices for parallel decoding */
> --

ok

Patch

diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c
index 99327df..fce7f62 100644
--- a/libavcodec/dxv.c
+++ b/libavcodec/dxv.c
@@ -36,7 +36,7 @@  typedef struct DXVContext {
 
     uint8_t *tex_data;  // Compressed texture
     int tex_rat;        // Compression ratio
-    int tex_step;       // Distance between blocks
+    ptrdiff_t tex_step; // Distance between blocks
     int64_t tex_size;   // Texture size
 
     /* Optimal number of slices for parallel decoding */