diff mbox series

[FFmpeg-devel,6/6] avcodec/vp3: Don't truncate ptrdiff_t

Message ID AS8P250MB0744B4AA1A4AC4FAC394587B8FF6A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit b5c07a368b64a0d96abfdc8c4546e29ced67eff9
Headers show
Series [FFmpeg-devel,1/3] avcodec/vp3: Move work after ff_thread_finish_setup | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 15, 2023, 2:47 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/vp3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol Sept. 15, 2023, 3:28 p.m. UTC | #1
LGTM
diff mbox series

Patch

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index f12bd497b9..98dabfc907 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1954,7 +1954,7 @@  static void await_reference_row(Vp3DecodeContext *s, const Vp3Fragment *fragment
  * @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,
-                              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 motion_shift = plane ? 4 : 2;