Commit ecf72597 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Janne Grunau

Clip resize height to image size

Fixes #183.
parent 92020899
Pipeline #2736 passed with stages
in 5 minutes and 52 seconds
......@@ -1616,9 +1616,10 @@ void bytefn(dav1d_filter_sbrow)(Dav1dFrameContext *const f, const int sby) {
const int ss_hor = pl && f->cur.p.layout != DAV1D_PIXEL_LAYOUT_I444;
const int dst_w = (f->sr_cur.p.p.w + ss_hor) >> ss_hor;
const int src_w = (4 * f->bw + ss_hor) >> ss_hor;
const int img_h = (f->cur.p.h - sbsz * 4 * sby + ss_ver) >> ss_ver;
f->dsp->mc.resize(dst, dst_stride, src, src_stride, dst_w, src_w,
h_end + h_start, f->resize_step[!!pl],
imin(img_h, h_end) + h_start, f->resize_step[!!pl],
f->resize_start[!!pl]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment