Skip loop restoration cache buffer resize for too-small buffers

Fixes crashes in dav1d_resize_{avx2,ssse3} on very small resolutions
with super_res enabled but skipped because the width is too small.
This commit is contained in:
Ronald S. Bultje
2020-04-02 02:44:27 +02:00
parent 4687c4696f
commit 41cd4199f1
+1 -1
View File
@@ -73,7 +73,7 @@ static void backup_lpf(const Dav1dFrameContext *const f,
dst += 4 * PXSTRIDE(dst_stride);
src += (stripe_h - 2) * PXSTRIDE(src_stride);
if (f->frame_hdr->super_res.enabled) {
if (f->frame_hdr->width[0] != f->frame_hdr->width[1]) {
while (row + stripe_h <= row_h) {
const int n_lines = 4 - (row + stripe_h + 1 == h);
f->dsp->mc.resize(dst, dst_stride, src, src_stride,