aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@gmail.com>2013-10-13 02:42:42 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-10-15 23:58:20 +0200
commit93f305473f880729d18b5e42067f19d2106cb2e5 (patch)
treeeb33d1474531f398fbf1391a6d515565f03d94f4 /libavcodec/h264.c
parent4baba6c813b7a1f27370e20fb1a87b05fcb39208 (diff)
downloadffmpeg-93f305473f880729d18b5e42067f19d2106cb2e5.tar.gz
lavc: Convert some remaining strides to ptrdiff_t
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5a9ab6a084..68f51a99df 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -875,7 +875,7 @@ static av_always_inline void mc_dir_part(H264Context *h, Picture *pic,
const int mx = h->mv_cache[list][scan8[n]][0] + src_x_offset * 8;
int my = h->mv_cache[list][scan8[n]][1] + src_y_offset * 8;
const int luma_xy = (mx & 3) + ((my & 3) << 2);
- int offset = ((mx >> 2) << pixel_shift) + (my >> 2) * h->mb_linesize;
+ ptrdiff_t offset = ((mx >> 2) << pixel_shift) + (my >> 2) * h->mb_linesize;
uint8_t *src_y = pic->f.data[0] + offset;
uint8_t *src_cb, *src_cr;
int extra_width = 0;