diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index c770ef32880fddfb8f51b588487fd8c7d2e5d515..a162fc7da38501b30ec80abf142839a944c0b378 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -808,7 +808,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, int lowpass_width = s->plane[plane].band[0][0].width; int highpass_stride = s->plane[plane].band[0][1].stride; int act_plane = plane == 1 ? 2 : plane == 2 ? 1 : plane; - int dst_linesize; + ptrdiff_t dst_linesize; int16_t *low, *high, *output, *dst; if (avctx->pix_fmt == AV_PIX_FMT_BAYER_RGGB16) {