avcodec/vp3: Don't truncate ptrdiff_t

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-09-14 21:38:42 +02:00
parent 11a9aab6c1
commit b5c07a368b
1 changed files with 1 additions and 1 deletions

View File

@ -1954,7 +1954,7 @@ static void await_reference_row(Vp3DecodeContext *s, const Vp3Fragment *fragment
* @return non-zero if temp (edge_emu_buffer) was populated * @return non-zero if temp (edge_emu_buffer) was populated
*/ */
static int vp4_mc_loop_filter(Vp3DecodeContext *s, int plane, int motion_x, int motion_y, int bx, int by, static int vp4_mc_loop_filter(Vp3DecodeContext *s, int plane, int motion_x, int motion_y, int bx, int by,
const uint8_t *motion_source, int stride, const uint8_t *motion_source, ptrdiff_t stride,
int src_x, int src_y, uint8_t *temp) int src_x, int src_y, uint8_t *temp)
{ {
int motion_shift = plane ? 4 : 2; int motion_shift = plane ? 4 : 2;