diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-08-26 12:26:50 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-09-04 11:57:15 +0200 |
commit | 746c56b7730ce09397d3a8354acc131285e9d829 (patch) | |
tree | ce950689016e319a0ff996ad5a77a01912e2c511 /libavcodec/ivi.c | |
parent | 4fb311c804098d78e5ce5f527f9a9c37536d3a08 (diff) | |
download | ffmpeg-746c56b7730ce09397d3a8354acc131285e9d829.tar.gz |
indeo: Change type of array pitch parameters to ptrdiff_t
ptrdiff_t is the correct type for array pitches and similar.
Diffstat (limited to 'libavcodec/ivi.c')
-rw-r--r-- | libavcodec/ivi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c index 8a5977705a..57946a3349 100644 --- a/libavcodec/ivi.c +++ b/libavcodec/ivi.c @@ -73,10 +73,10 @@ static VLC ivi_mb_vlc_tabs [8]; ///< static macroblock Huffman tables static VLC ivi_blk_vlc_tabs[8]; ///< static block Huffman tables typedef void (*ivi_mc_func) (int16_t *buf, const int16_t *ref_buf, - uint32_t pitch, int mc_type); + ptrdiff_t pitch, int mc_type); typedef void (*ivi_mc_avg_func) (int16_t *buf, const int16_t *ref_buf1, const int16_t *ref_buf2, - uint32_t pitch, int mc_type, int mc_type2); + ptrdiff_t pitch, int mc_type, int mc_type2); static int ivi_mc(IVIBandDesc *band, ivi_mc_func mc, ivi_mc_avg_func mc_avg, int offs, int mv_x, int mv_y, int mv_x2, int mv_y2, @@ -882,11 +882,11 @@ static uint16_t ivi_calc_band_checksum(IVIBandDesc *band) * @param[out] dst pointer to the buffer receiving converted pixels * @param[in] dst_pitch pitch for moving to the next y line */ -static void ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch) +static void ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, ptrdiff_t dst_pitch) { int x, y; const int16_t *src = plane->bands[0].buf; - uint32_t pitch = plane->bands[0].pitch; + ptrdiff_t pitch = plane->bands[0].pitch; if (!src) return; |