diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-08-26 12:44:16 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-09-04 11:57:15 +0200 |
commit | 21e500ba647aec233d5930d3d1081489d0d53ceb (patch) | |
tree | 74a0ab1a2a87578c490c5fdf966635a1be40ea79 | |
parent | 746c56b7730ce09397d3a8354acc131285e9d829 (diff) | |
download | ffmpeg-21e500ba647aec233d5930d3d1081489d0d53ceb.tar.gz |
svq1dec: Change type of array pitch parameters to ptrdiff_t
ptrdiff_t is the correct type for array pitches and similar.
-rw-r--r-- | libavcodec/svq1dec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index d6f4b43539..cc43f1491c 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -155,7 +155,7 @@ static const uint8_t string_table[256] = { n4 = mean + (mean >> 31) << 16 | (mean & 0xFFFF); static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels, - int pitch) + ptrdiff_t pitch) { uint32_t bit_cache; uint8_t *list[63]; @@ -220,7 +220,7 @@ static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels, } static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels, - int pitch) + ptrdiff_t pitch) { uint32_t bit_cache; uint8_t *list[63]; @@ -304,7 +304,7 @@ static int svq1_decode_motion_vector(GetBitContext *bitbuf, svq1_pmv *mv, } static void svq1_skip_block(uint8_t *current, uint8_t *previous, - int pitch, int x, int y) + ptrdiff_t pitch, int x, int y) { uint8_t *src; uint8_t *dst; @@ -322,7 +322,7 @@ static void svq1_skip_block(uint8_t *current, uint8_t *previous, static int svq1_motion_inter_block(HpelDSPContext *hdsp, GetBitContext *bitbuf, uint8_t *current, uint8_t *previous, - int pitch, svq1_pmv *motion, int x, int y, + ptrdiff_t pitch, svq1_pmv *motion, int x, int y, int width, int height) { uint8_t *src; @@ -366,7 +366,7 @@ static int svq1_motion_inter_block(HpelDSPContext *hdsp, GetBitContext *bitbuf, static int svq1_motion_inter_4v_block(HpelDSPContext *hdsp, GetBitContext *bitbuf, uint8_t *current, uint8_t *previous, - int pitch, svq1_pmv *motion, int x, int y, + ptrdiff_t pitch, svq1_pmv *motion, int x, int y, int width, int height) { uint8_t *src; @@ -448,7 +448,7 @@ static int svq1_motion_inter_4v_block(HpelDSPContext *hdsp, GetBitContext *bitbu static int svq1_decode_delta_block(AVCodecContext *avctx, HpelDSPContext *hdsp, GetBitContext *bitbuf, uint8_t *current, uint8_t *previous, - int pitch, svq1_pmv *motion, int x, int y, + ptrdiff_t pitch, svq1_pmv *motion, int x, int y, int width, int height) { uint32_t block_type; |