repack: fix incorrect assert()

Used the output of the first step instead of the input when checking the
real input.
This commit is contained in:
wm4 2020-05-12 23:08:10 +02:00
parent c4b2ca83d6
commit 1e75f442b1
1 changed files with 1 additions and 1 deletions

View File

@ -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)));