avcodec/cfhd: Fix linesize type
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 10:02:33 +0000 (12:02 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 15:54:24 +0000 (17:54 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cfhd.c

index c770ef3..a162fc7 100644 (file)
@@ -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) {