ptrdiff_t is the correct type for array strides and similar.
---
libavcodec/fic.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index b1286eb..fc4ffac 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -79,7 +79,7 @@ static const uint8_t fic_header[7] = { 0, 0, 1, 'F', 'I',
'C', 'V' };
#define FIC_HEADER_SIZE 27
-static av_always_inline void fic_idct(int16_t *blk, int step, int shift)
+static av_always_inline void fic_idct(int16_t *blk, ptrdiff_t step, int shift)
{
const int t0 = 27246 * blk[3 * step] + 18405 * blk[5 * step];
const int t1 = 27246 * blk[5 * step] - 18405 * blk[3 * step];
@@ -103,7 +103,7 @@ static av_always_inline void fic_idct(int16_t *blk, int
step, int shift)
blk[7 * step] = ( -t4 + t9 + tB) >> shift;
}
-static void fic_idct_put(uint8_t *dst, int stride, int16_t *block)
+static void fic_idct_put(uint8_t *dst, ptrdiff_t stride, int16_t *block)
{
int i, j;
int16_t *ptr;
@@ -129,7 +129,7 @@ static void fic_idct_put(uint8_t *dst, int stride, int16_t
*block)
}
}
static int fic_decode_block(FICContext *ctx, GetBitContext *gb,
- uint8_t *dst, int stride, int16_t *block)
+ uint8_t *dst, ptrdiff_t stride, int16_t *block)
{
int i, num_coeff;
@@ -171,7 +171,7 @@ static int fic_decode_slice(AVCodecContext *avctx, void
*tdata)
init_get_bits(&gb, src, src_size * 8);
for (p = 0; p < 3; p++) {
- int stride = ctx->frame->linesize[p];
+ ptrdiff_t stride = ctx->frame->linesize[p];
uint8_t* dst = ctx->frame->data[p] + (y_off >> !!p) * stride;
for (y = 0; y < (slice_h >> !!p); y += 8) {
--
2.1.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel