summaryrefslogtreecommitdiffstats
path: root/libavcodec/ivi.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-20 09:07:57 +0100
committerClément Bœsch <u@pkh.me>2017-03-20 09:07:57 +0100
commitbb3ad401fc658708acffc9fd1b12be6652516c00 (patch)
tree4d7a66f58cc75b05871588d57cd1759fb8d380ac /libavcodec/ivi.c
parent3835283293bfd38ba69203f4618f0f0f21377bcc (diff)
parent746c56b7730ce09397d3a8354acc131285e9d829 (diff)
downloadffmpeg-streaming-bb3ad401fc658708acffc9fd1b12be6652516c00.zip
ffmpeg-streaming-bb3ad401fc658708acffc9fd1b12be6652516c00.tar.gz
Merge commit '746c56b7730ce09397d3a8354acc131285e9d829'
* commit '746c56b7730ce09397d3a8354acc131285e9d829': indeo: Change type of array pitch parameters to ptrdiff_t Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavcodec/ivi.c')
-rw-r--r--libavcodec/ivi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c
index ad48abb..c02addf 100644
--- a/libavcodec/ivi.c
+++ b/libavcodec/ivi.c
@@ -74,10 +74,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,
@@ -903,11 +903,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;
OpenPOWER on IntegriCloud