diff options
author | wm4 <wm4@nowhere> | 2020-05-12 23:08:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-12 23:08:10 +0200 |
commit | 1e75f442b1454a1a4c16fc556e892150fd6ceec5 (patch) | |
tree | f7fbfdc4bc5646c6d1a7a00b111b7e36379785fb /video/repack.c | |
parent | c4b2ca83d6afc783b343a4b30d507234c224df40 (diff) | |
download | mpv-1e75f442b1454a1a4c16fc556e892150fd6ceec5.tar.bz2 mpv-1e75f442b1454a1a4c16fc556e892150fd6ceec5.tar.xz |
repack: fix incorrect assert()
Used the output of the first step instead of the input when checking the
real input.
Diffstat (limited to 'video/repack.c')
-rw-r--r-- | video/repack.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))); |