From 1e75f442b1454a1a4c16fc556e892150fd6ceec5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 12 May 2020 23:08:10 +0200 Subject: repack: fix incorrect assert() Used the output of the first step instead of the input when checking the real input. --- video/repack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/repack.c b/video/repack.c index 51b4d1b44d..db9bc31ac7 100644 --- a/video/repack.c +++ b/video/repack.c @@ -902,7 +902,7 @@ void repack_line(struct mp_repack *rp, int dst_x, int dst_y, assert(dst_x >= 0 && dst_y >= 0 && src_x >= 0 && src_y >= 0 && w >= 0); assert(dst_x + w <= MP_ALIGN_UP(last->buf[1]->w, last->fmt[1].align_x)); - assert(src_x + w <= MP_ALIGN_UP(first->buf[1]->w, first->fmt[0].align_x)); + assert(src_x + w <= MP_ALIGN_UP(first->buf[0]->w, first->fmt[0].align_x)); assert(dst_y < last->buf[1]->h); assert(src_y < first->buf[0]->h); assert(!(dst_x & (last->fmt[1].align_x - 1))); -- cgit v1.2.3